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?
Colors and FillRgn
Moderator: Chris White
-
- Posts: 212
- Joined: Mon Nov 29, 2010 9:21 pm
Re: Colors and FillRgn
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
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