Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On-the-fly image scaling and format transformation?
Message
From
28/12/2006 14:30:59
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
01180673
Message ID:
01180728
Views:
12
Thanks to you Russuel and Sergey:)

>VFPX now on Codeplex at http://www.codeplex.com/Wiki/View.aspx?ProjectName=VFPX

Downloading was a snap. I could use the sample by Cesar Chalom to fit my needs.

http://weblogs.foxite.com/cesarchalom/archive/2006/09/18/2491.aspx

The possibilies seam endless. Howeve I did not find simple pointers on how to resize the the object (width and height). Any clue?


_SCREEN.AddProperty("System", NEWOBJECT("xfcSystem", LOCFILE("system.vcx","vcx")))

WITH _SCREEN.System.Drawing

* Load Image to GDI+
LOCAL loBmp AS xfcBitmap
loBmp = .Bitmap.New(GETPICT())

* Change BitmapResolution
loBmp.SetResolution(200,200)

* Save the Bitmap as Bmp or Icon
*!* loBmp.Save("c:\NewResolution.bmp", .Imaging.ImageFormat.Bmp)
loBmp.Save("c:\NewResolution.ico", .Imaging.ImageFormat.Icon)

ENDWITH

RETURN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform