ColorDialog CustomColors Alpha value

M

Marcus Kwok

I am working with a ColorDialog and adding custom colors to it. I have
already become aware of the bug of the RGB values being in the wrong
order when creating an array of custom colors, as shown in these
threads:

http://groups.google.com/group/micr...ndowsforms/browse_frm/thread/8befd4de3799f60e

http://groups.google.com/group/micr...dowsforms/browse_frm/thread/c225c97af7d45d14/

http://groups.google.com/group/micr...ndowsforms/browse_frm/thread/58cbe7edf7402584

However, I've noticed something else weird. If I explicitly set the
Alpha component to 255, or alternately, leave it off and use the three
parameter version of Color::FromArgb() (which implicitly sets the Alpha
value to 255), then the custom color looks black when I click on it,
though the RGB values are listed as being correct. If I touch the
Luminosity slider, then the color immediately changes to what it should.

If I specify any value between 0 and 254 (inclusive) for Alpha, then the
colors appear correctly from the beginning.

Has anybody else experienced this? Will setting the Alpha values to 0
cause any problems, such as making things transparent when they should
not be?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top