Scaling images
Since graphics in Windows is my weak spot...how does one scale an image
(BMP, PNG, JPEG, etc.) such that when the image is shrunk by the user
it doesn't look funny? What I mean by "funny" is that I have a window
that displays an image (using FreeImage). I want to show the image in
the window for a "preview" so I use the stretchBlt function in
Win32Lib to shrink the image. But the shrunken image does not look as
good as say, shrinking the image in the Windows Picture and Fax Viewer in
XP.
Can this be done with stretchBlt or is more complicated than that?
Jonas Temple
http://www.yhti.net/~jktemple
|
Not Categorized, Please Help
|
|