Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitmap Colors
Message
De
06/04/2002 16:53:53
 
 
À
06/04/2002 16:36:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00641852
Message ID:
00641856
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform