Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GDI size image
#1
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
#2
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.
#3
I messed around with CopyImage, but couldn't figure out how to do it.

Could you provide an example?
#4
CopyImage works only with .bmp and maybe .ico and.cur. Need a bitmap handle. Don't use it if need good quality.
#5
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
#6
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.


Forum Jump:


Users browsing this thread: 2 Guest(s)