Page 1 of 1

Colors and FillRgn

Posted: Wed Jun 08, 2016 7:30 pm
by henry1224
Chris, I noticed this snippet of code

FillRgn(CCI>100, CCI, 100),Brush#20808000;
FillRgn(CCI<-100, CCI, -100),Brush#20808000;


And I'm wondering what are the color codes?
Red?
Green?
DarkRed?
Lime?
LightGreen?
Orange?
Blue?
Cyan?

Re: Colors and FillRgn

Posted: Thu Jun 09, 2016 7:46 am
by Chris White
The color code is in ARGB format (Alpha, Red, Green, Blue).

The pattern is: #AARRGGBB

So, in your example, #20808000 would break down like so:

20: Alpha (range 00-FF hex) Higher numbers are less transparent
80: Red (range 00-FF hex)
80: Green (range 00-FF hex)
00: Blue (range 00-FF hex)

The following page has a good description of ARGB format:

https://en.wikipedia.org/wiki/RGBA_colo ... d-order.29

Re: Colors and FillRgn

Posted: Thu Jun 09, 2016 1:29 pm
by henry1224