Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitmaps and Icons on buttons problem in VFP?
Message
 
À
10/02/1997 20:38:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00019921
Message ID:
00019972
Vues:
32
>>Hello All...I have done some experimentation using icons and bitmaps on command buttons, and have come to the following conclusions:
>>
>> * 16x16 .ICO's are forcibly scaled to 32x32
>>
>> * 'Screen color' in ICO files is ignored and white (RGB(255,255,255)) is the only transparent color allowed.
>>
>> * Likewise, the only way to make a part of a BMP transparent is the paint it white.
>>
>>Hopefully, someone will be able to correct any or all of these assumptions. If this is true, how does use white on an icon?
>
>For each filename.bmp make a filename.msk (mask) and put black in the corresponding pixel for each pixel you want to be white and opaque in filename.bmp. FoxPro automatically looks for a mask file.
>
>If you still have problems with it, tell me and I'll look for a sample to send to you by email.
>
>Vlad

Additionally,
All parts of the icon that you want to be colored you need to make it all black with the transparent part white, then SaveAs the same name.msk. All the white will now be white and the rest transparent. Oh, store it along with the original.

HTH
Jon Paskett

Microsoft Certified Systems Engineer
We all have to start somewhere...
Sometimes over again!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform