Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CENTERING A BMP in _SCREEN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00124699
Message ID:
00124715
Vues:
17
>hI,
>does anybody know how to centre a bmp. I use _screen.picture=mypicture.bmp. The picture size is 400*180. . VFP automatically TILEs it. Is there anyway I could centre the whole picture without having to increase the size of the BMP.
>
>TIA
>Fred.
>Happiness is Not having what you Want but Wanting what you have

Since you are using _SCREEN, try the '@ SAY'command line with the SIZE, BITMAP and CENTER options. Your code should look something like this;

@ 0,0 SAY 'yourBitmap.bmp' SIZE x, y BITMAP CENTER

By the way, VFP sizes the bitmap in rows and columns where a row is approximately twice the size of the current window font. You might look at VFP help for further detail.
Sanjay Kapoor

Relatively speaking is a conversation with Einstein
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform