Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 2504

ColorDialog returns incorrect colour values

$
0
0

I have a ColorDialog box which I use to set a precise colour: Red:20; Green:133; Blue:116. (All decimal values) I create a bit map with this colour in my app, and save it as a bitmap. When I view the bitmap in a graphics program, it records the colour values as decimal Red:32; Green:132; Blue:114. The difference is subtle, but discernible when the bitmap is placed onto the background of the desired colour. When I relaunch the app, the ColorDialog box says the colours are as I wanted (red:20 etc). Why should D10 report one set of values, when they appear to be different? Is there anything significant in 20 (which I enter as a decimal number) being 32 if it was a hex number? (I don't think so, as I tried setting red:14 (if hex, then decimal=20) but the graphics program reported the colour as decimal 28).

P.s. this is my 4th question, and since I have had no reply to the previous three, I am thinking that perhaps being unregistered means no-one can reply to me? Or my questions are considered stupid.

 

I am using D10 on Windows 10.


Viewing all articles
Browse latest Browse all 2504

Trending Articles