Hi!
I generate thumbnails dynamically. The function has two parameters - filename and maxfilesize. And while thumbnail size in butes is bigger than the maxfilesize, it make new thumbnail again, only a smaller one. And my problem is how I can check the thumbnail size? It tried to save it to stream and then I took its length and compared it with maxfilesize and do the while loop. But when I tried to make a new bitmap with a new size, in the loop, then it told me The invalid parameter used
Are there any other solution or why it tells it?
I generate thumbnails dynamically. The function has two parameters - filename and maxfilesize. And while thumbnail size in butes is bigger than the maxfilesize, it make new thumbnail again, only a smaller one. And my problem is how I can check the thumbnail size? It tried to save it to stream and then I took its length and compared it with maxfilesize and do the while loop. But when I tried to make a new bitmap with a new size, in the loop, then it told me The invalid parameter used
Are there any other solution or why it tells it?