Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JPEG Resizing
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Miscellaneous
Thread ID:
00740402
Message ID:
00740809
Views:
23
This message has been marked as the solution to the initial question of the thread.
>Does anyone have experience resizing .JPG files from within VFP? Are there any Windows API routines that can be called to do this?

Scott,

I sent you a GDI+ image class. It's not finished but can be used for your task. The code should look like this:
#include gpImage.h
If Not "gpImage" $ Set("Procedure")
	Set Procedure To gpImage Additive
EndIf
gdip = CreateObject("gpInit")
img = CreateObject("gpImage")

img.Load("test.jpg")
img.Resize(100,200,InterpolationModeHighQuality)
img.SaveJPG("out.jpg")
HTH,
Alexander
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform