Delphi & Maskcolor/Usetransparency
Posted: Sun Jan 29, 2006 7:53 pm
Hello
I'm writing a small utility in Delphi 5 that converts BMP toolbar images I've created in various ways. As you probably know the colour bottom left pixel defines what counts as transparent. I use RGB FF00FF, so all pixels that are that colour apear transparent in the toolbar.
The first test programs I thought I'd try was to convert the BMP to a transparent GIF and then another to convert it to a transparent PNG. However, unlike GflAx, there doesn't seem to be maskcolor or usetransparency (at least they're not defined in libgfl.pas) so I can't make the BMP background color truly transparent before saving.
The closest thing I saw was TransparentIndex, but I assume that's the index in to a colour palette which won't work.
So is there any way to do this? If not could you add it to your to-do list for the next version please.
Thanks
Marc
I'm writing a small utility in Delphi 5 that converts BMP toolbar images I've created in various ways. As you probably know the colour bottom left pixel defines what counts as transparent. I use RGB FF00FF, so all pixels that are that colour apear transparent in the toolbar.
The first test programs I thought I'd try was to convert the BMP to a transparent GIF and then another to convert it to a transparent PNG. However, unlike GflAx, there doesn't seem to be maskcolor or usetransparency (at least they're not defined in libgfl.pas) so I can't make the BMP background color truly transparent before saving.
The closest thing I saw was TransparentIndex, but I assume that's the index in to a colour palette which won't work.
So is there any way to do this? If not could you add it to your to-do list for the next version please.
Thanks
Marc