Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RotateFlip Question
Message
 
À
03/03/2005 12:16:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00992477
Message ID:
00992500
Vues:
25
>Hi,
>
>Here is an excerpt from the VFP help for the RotateFlip property.
>
>
>Visual FoxPro stores a single image in memory internally. If you use that image multiple times,
>Visual FoxPro renders it the same way regardless of RotateFlip. If you want to display the same
>image multiple times in various rotations, rename each copy of the image that you use. If you
>issue the CLEAR...RESOURCES command, Visual FoxPro reloads the image into memory and loses any
>prior GDI+ settings.
>
>
>
>I am using three images in a container class and there are numerous instances of the container class on the form in question (eight instances). So, the images are ignoring the RotateFlip property. What I would like to know is how do you "rename each copy of the image that you use" ? Is this something that is done at runtime (with the in-memory instance) or does it literally mean have multiple copies of the source images with different file name(s) on disk? This would seem somewhat unrealistic - if this is the case, I may as well have the source images designed in the position that I am trying to "flip" to (if you see what I mean) :)
>
>Thanks for any advice.

Gary,

Whether or not it makes sense, it does mean you have to have multiple copies of the image. And yes, in your case, it would make more sense to just save the image in the various rotated positions. Fox only keeps ONE copy of each physical file in memory and just reuses that copy for every instance of the image. You may be able to fake the Fox by using LoadPicture(), SavePicture(), and the PictureVal property. Of course that's just a thought and probably wouldn't be worth the effort or hassle.

HTH,
Chad
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform