Posts: 1,000
Threads: 253
Joined: Feb 2008
How to go about using GDI to load an image and save it as a specified width and height?
Doing it with gflax, image is very fuzzy although I can get it down to the size I want in program without fuzzy.
-Jim
Posts: 12,058
Threads: 140
Joined: Dec 2002
To resize image with GDI, can be used CopyImage. Quality better than StretchBlt, but not as good as GflAx and GDI+. Maybe more functions exist, but I don't know, look in stackoverflow etc.
Posts: 1,000
Threads: 253
Joined: Feb 2008
I messed around with CopyImage, but couldn't figure out how to do it.
Could you provide an example?
Posts: 12,058
Threads: 140
Joined: Dec 2002
CopyImage works only with .bmp and maybe .ico and.cur. Need a bitmap handle. Don't use it if need good quality.
Posts: 1,000
Threads: 253
Joined: Feb 2008
Using IrfanView...nice and clean. I've just had some bad luck in the past with IrfanView hanging up so I started using gflax...which does a good job if the images are at least around 300px...but getting down into the 100px range...not very crisp sizing at all!
It's always fun when processing images is involved. Any tricks you might have?
-Jim
Posts: 12,058
Threads: 140
Joined: Dec 2002
I use IrfanView too, when need quality.
To resize without external tools, probably would try GDI+. But never needed it. If don't need good quality - CopyImage.