ResizeImage without scaling the image
Posted: Fri Feb 22, 2008 7:08 am
I would like to draw on images to create custom gadgets. The problem I have is that resizing images is very slow on large images or with many images at once. The problem appears to be caused by the scaling of the old pixels. In my case I only need to change the image dimensions. My gadgets will redraw every pixel new at the correct scale.
I'm currently using CreateImage() to recreate the image which is much faster but this does not feel like an optimal approach. A flag for ResizeImage() that prevents it from scaling would be nice.
I'm currently using CreateImage() to recreate the image which is much faster but this does not feel like an optimal approach. A flag for ResizeImage() that prevents it from scaling would be nice.