Hight Quality Bitmap Stretching Displaying?
-
Sometimes I need to display a bitmap much smaller then its original size, by using the
StretchBlt
API I get sadly ugly outcomes, I've noticed many picture-viewer applications have the ability of stretch-displaying pictures while maintaining high quality, some of them(IE 6.0, etc) can even do that job absolutely perfect. I wonder if I too can implement that in my own projects? Any help are appreciated. -
Sometimes I need to display a bitmap much smaller then its original size, by using the
StretchBlt
API I get sadly ugly outcomes, I've noticed many picture-viewer applications have the ability of stretch-displaying pictures while maintaining high quality, some of them(IE 6.0, etc) can even do that job absolutely perfect. I wonder if I too can implement that in my own projects? Any help are appreciated.for starters, see SetStretchBltMode if that doesn't do it, you'll need to explore the world of image resizing algorithms and resize the image yourself. i hear there are toolkits out there to help with this.
=[ Abin ]= wrote:
some of them(IE 6.0, etc) can even do that job absolutely perfect
no method is perfect. the best you can hope for, especially when enlarging, is adequate. Cleek | Image Toolkits | Thumbnail maker