Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GDI+ How to save directly to a VFP image
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01521803
Message ID:
01521889
Vues:
55
>>Is it possible to take the result contained in
.Imaging.ImageFormat.Png
and stuff it directly into a VFP Image Object so I don't have to save to file then read the file? I thought I had done this once but it was some time back.
>
>There are several ways ti do that :-D
>
>1 - loCaptureBmp.Save(Thisform.Image1) && Yes, that simple !!!!
>
>2 - Thisform.Image1.PIctureVal= loCaptureBmp.GetPictureValFromHbitmap()
>
>3 - Thisform.Image1.PIctureVal= loCaptureBmp.GetPictureVal(.Imaging.ImageFormat.Bmp)
>
>Are these 3 ways enough ???
>
>Here you can get some more detailed info:
>Manipulate images with no disk access with GdiPlusX
>http://weblogs.foxite.com/vfpimaging/archive/2007/11/07/5352.aspx
>
>Hope this helps you to get started


Cesar,
I cannot thank you enough. Not just for this help but for all the work you have put into GDI+ to make it what it is.

You might be interested in some speed test I ran on the above 3 samples.

#1 1.8 seconds to run. About the same or longer than saving to a file and assigning it to the image.
#2 less than .4 seconds
#3 more than 1 second.

The results on screen are very noticeable.
Thanks again.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform