I would like to resize a picture to a specific file size. For example, no more than 200KB. What is the best approach to achieve this with C# .NET ?
Thanks !
A rough estimate is as follows:
size(KB) = (width * height * bitdepth) / (8 * 1024)
The file size is inflated a bit more due to file information (compression info, etc).