Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On-the-fly image scaling and format transformation?
Message
De
28/12/2006 14:30:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
01180673
Message ID:
01180728
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform