Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitmap Colors
Message
From
06/04/2002 16:53:53
 
 
To
06/04/2002 16:36:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00641852
Message ID:
00641856
Views:
17
>This is an example.
>
>The new.bmp from the Visual Studio bitmap collection shows a white page with the corner turned down. Just what I wanted.
>
>When I put this bmp on a button on a form, the page shows up grey, not white, without regard to whether the button is enabled or not.
>
>Can someone explain what is controlling the color (or colour) of the bmp?
>
>Many Thanks,

Hello

You have to use masks. In VFP the mask can be done with another bitmap, with the same name, but with extension .msk: 'NEW.MSK'.

Open new.bmp in Paint, and change the colors as follows: everything you want to be opaque on the button (the white portion of the page, for example) color it black, and what you want to be transparent, make it white. Save the bitmap with the same name + .msk in the same directory as the original bitmap. Place the original bitmap on the button and the white area will be opaque i.e. white.

Hope this helps
Grigore Dolghin
Class Software.
Previous
Reply
Map
View

Click here to load this message in the networking platform