Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GDI + Best way to save image in different sizes
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01476480
Message ID:
01476518
Views:
50
>I have an image edit screen using GDI +. I need to save the image in at least two different sizes; a re-sized image and a thumbnail. I have one GDI + PRG that uses loImage.GetThumbnailImage(100, 100) and another one that uses some other PRGs. What is the best way to do this. I want the best quality save for the full size. Is there one GDI + call that I can use to save in different sizes and get a good quality?
>
>Just so you know, I'm new to all this imaging stuff so most of my code is cut and paste without understaning all of what I am doing.

The quality is specified as the third parameter of the SaveTofile method.
oImage= newobject('GpBitmap','ffc/_gdiplus.vcx')
oImage.CreateFromFile(GETPICT())
oImg=oImage.GetThumbnailImage(100,100) 
oImg.SaveToFile('c:\temp\image2.jpg',"image/jpeg",'quality=100')
Previous
Reply
Map
View

Click here to load this message in the networking platform