Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CENTERING A BMP in _SCREEN
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00124699
Message ID:
00124715
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform