Colors and FillRgn

A forum for all EdgeRater users

Moderator: Chris White

Post Reply
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Colors and FillRgn

Post 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?
Chris White
Posts: 201
Joined: Mon Nov 29, 2010 9:21 pm

Re: Colors and FillRgn

Post 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
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: Colors and FillRgn

Post by henry1224 »

Post Reply