Look here for the result ... as you can see, the red color is masked out as transparent, but the color at (0,0) is white. I've checked that GetColorAt(0,0) returns FFFFFF - this is true. I also tried RGB(255,255,255) which gives the same result ... so the error must lie within the transparency/maskcolor/savebitmap functions?
I don't see how that could be the problem? it shouldn't matter what's in the image in the first place - since I convert it to 8 colours first, the image has a palette ... normally, when you create a transparent GIF, that's what you do - reduce to x number of colors, then pick the color you want to be transparent.
If I set a specific MaskColor, shouldn't it mask that color out? otherwise what's the point of having MaskColor? setting it doesn't seem to have any effect at all?
mindplay wrote:I don't see how that could be the problem? it shouldn't matter what's in the image in the first place - since I convert it to 8 colours first, the image has a palette ... normally, when you create a transparent GIF, that's what you do - reduce to x number of colors, then pick the color you want to be transparent.
If I set a specific MaskColor, shouldn't it mask that color out? otherwise what's the point of having MaskColor? setting it doesn't seem to have any effect at all?
Yes, the edge pixels are not full-intensity red - I also don't want those masked out, so that's not a problem. But look at the code:
Pic.MaskColor = Pic.GetColorAt(0,0)
The color at 0,0 is the background color, WHITE, FFFFFF ... not red.
So white should be masked out - not red.
But it doesn't seem to matter WHAT I set MaskColor to - white OR red, it always masks out the same thing ... this property doesn't seem to have any effect at all?
mindplay wrote:Yes, the edge pixels are not full-intensity red - I also don't want those masked out, so that's not a problem. But look at the code:
Pic.MaskColor = Pic.GetColorAt(0,0)
The color at 0,0 is the background color, WHITE, FFFFFF ... not red.
So white should be masked out - not red.
But it doesn't seem to matter WHAT I set MaskColor to - white OR red, it always masks out the same thing ... this property doesn't seem to have any effect at all?
Ok, right. Send me your a PM with your email, and i'll send you a beta version.