Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mask for .bmp on commandbutton
Message
From
13/11/2007 17:50:28
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01268699
Message ID:
01268779
Views:
13
>I'm no expert but it is easy to see there are a few "issues" with image handling in VFP! I don't want to make a big project out of this but it's annoying to have the white aura on the command buttons when it doesn't appear on forms. I'm not really interested in converting the library I bought and I don't have much to work with except MS Paint anyway.
>
>>Are you shure you get transparent pngs in commandbuttons?< Reasonably sure: images are transparent everywhere except on commandbuttons.
>

>>You can use 32bpp png files in buttons, but 8bits alpha mask will look bad. The best bet is to stick to 24bpp or indexed 256 color images, with a 1 bit aplha mask (the color white in bmp files, the alpha mask in png files)<
>
>OK, I'm such a neophyte when it comes to graphics that I'm not sure what you are telling me here. My choices are: 24-bit mask bmp, 32-bit alpha bmp, 32-bit alpha png, 32-bit icon, 256 color gif with transparency, 256 color png with transparency, 256 color icon, and the layered Adobe PSD file. Since I don't have PhotoShop, the PSD isn't much help. What would work best?
>
>I thought I could just change the magenta on the 24-bit mask bmp to the gray RGB(236,233,216) that is supposedly the backcolor and disabled backcolor of the command button--but they don't match.

Linda, the best choice is to have 24-bit bmp files with white as a transparent color. You will not have that in your library for shure.

Second choice would be 24-bit bmp file with 1 bit msk file where white is transparent and black is opaque. You can open msk files with paint, a msk file is just a bmp file with the extension changed.

Since I plan on writing a couple of articles on this issue, if you want, you can send me some of files in each of the formats you have, and I could write a prg to easily convert those files to a VFP -friendly format.

This way I get a chance to experiment with this, and you get a chance to solve your problem. And we will both be helping other developers, since this is a common problem with VFP developers and image librares due to the non standard behaviour of VFP.

My email address is calloatti@gmail.com

Carlos
Previous
Reply
Map
View

Click here to load this message in the networking platform