23 typedef unsigned long ARGB;
33 Argb = (ARGB)Color::Black;
62 return (BYTE) (Argb >> AlphaShift);
72 return (BYTE) (Argb >> RedShift);
82 return (BYTE) (Argb >> GreenShift);
92 return (BYTE) (Argb >> BlueShift);
100 ARGB GetValue()
const 105 VOID SetValue(ARGB argb)
115 AliceBlue = 0xFFF0F8FF,
116 AntiqueWhite = 0xFFFAEBD7,
118 Aquamarine = 0xFF7FFFD4,
123 BlanchedAlmond = 0xFFFFEBCD,
125 BlueViolet = 0xFF8A2BE2,
127 BurlyWood = 0xFFDEB887,
128 CadetBlue = 0xFF5F9EA0,
129 Chartreuse = 0xFF7FFF00,
130 Chocolate = 0xFFD2691E,
132 CornflowerBlue = 0xFF6495ED,
133 Cornsilk = 0xFFFFF8DC,
134 Crimson = 0xFFDC143C,
136 DarkBlue = 0xFF00008B,
137 DarkCyan = 0xFF008B8B,
138 DarkGoldenrod = 0xFFB8860B,
139 DarkGray = 0xFFA9A9A9,
140 DarkGreen = 0xFF006400,
141 DarkKhaki = 0xFFBDB76B,
142 DarkMagenta = 0xFF8B008B,
143 DarkOliveGreen = 0xFF556B2F,
144 DarkOrange = 0xFFFF8C00,
145 DarkOrchid = 0xFF9932CC,
146 DarkRed = 0xFF8B0000,
147 DarkSalmon = 0xFFE9967A,
148 DarkSeaGreen = 0xFF8FBC8B,
149 DarkSlateBlue = 0xFF483D8B,
150 DarkSlateGray = 0xFF2F4F4F,
151 DarkTurquoise = 0xFF00CED1,
152 DarkViolet = 0xFF9400D3,
153 DeepPink = 0xFFFF1493,
154 DeepSkyBlue = 0xFF00BFFF,
155 DimGray = 0xFF696969,
156 DodgerBlue = 0xFF1E90FF,
157 Firebrick = 0xFFB22222,
158 FloralWhite = 0xFFFFFAF0,
159 ForestGreen = 0xFF228B22,
160 Fuchsia = 0xFFFF00FF,
161 Gainsboro = 0xFFDCDCDC,
162 GhostWhite = 0xFFF8F8FF,
164 Goldenrod = 0xFFDAA520,
167 GreenYellow = 0xFFADFF2F,
168 Honeydew = 0xFFF0FFF0,
169 HotPink = 0xFFFF69B4,
170 IndianRed = 0xFFCD5C5C,
174 Lavender = 0xFFE6E6FA,
175 LavenderBlush = 0xFFFFF0F5,
176 LawnGreen = 0xFF7CFC00,
177 LemonChiffon = 0xFFFFFACD,
178 LightBlue = 0xFFADD8E6,
179 LightCoral = 0xFFF08080,
180 LightCyan = 0xFFE0FFFF,
181 LightGoldenrodYellow = 0xFFFAFAD2,
182 LightGray = 0xFFD3D3D3,
183 LightGreen = 0xFF90EE90,
184 LightPink = 0xFFFFB6C1,
185 LightSalmon = 0xFFFFA07A,
186 LightSeaGreen = 0xFF20B2AA,
187 LightSkyBlue = 0xFF87CEFA,
188 LightSlateGray = 0xFF778899,
189 LightSteelBlue = 0xFFB0C4DE,
190 LightYellow = 0xFFFFFFE0,
192 LimeGreen = 0xFF32CD32,
194 Magenta = 0xFFFF00FF,
196 MediumAquamarine = 0xFF66CDAA,
197 MediumBlue = 0xFF0000CD,
198 MediumOrchid = 0xFFBA55D3,
199 MediumPurple = 0xFF9370DB,
200 MediumSeaGreen = 0xFF3CB371,
201 MediumSlateBlue = 0xFF7B68EE,
202 MediumSpringGreen = 0xFF00FA9A,
203 MediumTurquoise = 0xFF48D1CC,
204 MediumVioletRed = 0xFFC71585,
205 MidnightBlue = 0xFF191970,
206 MintCream = 0xFFF5FFFA,
207 MistyRose = 0xFFFFE4E1,
208 Moccasin = 0xFFFFE4B5,
209 NavajoWhite = 0xFFFFDEAD,
211 OldLace = 0xFFFDF5E6,
213 OliveDrab = 0xFF6B8E23,
215 OrangeRed = 0xFFFF4500,
217 PaleGoldenrod = 0xFFEEE8AA,
218 PaleGreen = 0xFF98FB98,
219 PaleTurquoise = 0xFFAFEEEE,
220 PaleVioletRed = 0xFFDB7093,
221 PapayaWhip = 0xFFFFEFD5,
222 PeachPuff = 0xFFFFDAB9,
226 PowderBlue = 0xFFB0E0E6,
229 RosyBrown = 0xFFBC8F8F,
230 RoyalBlue = 0xFF4169E1,
231 SaddleBrown = 0xFF8B4513,
233 SandyBrown = 0xFFF4A460,
234 SeaGreen = 0xFF2E8B57,
235 SeaShell = 0xFFFFF5EE,
238 SkyBlue = 0xFF87CEEB,
239 SlateBlue = 0xFF6A5ACD,
240 SlateGray = 0xFF708090,
242 SpringGreen = 0xFF00FF7F,
243 SteelBlue = 0xFF4682B4,
246 Thistle = 0xFFD8BFD8,
248 Transparent = 0x00FFFFFF,
249 Turquoise = 0xFF40E0D0,
253 WhiteSmoke = 0xFFF5F5F5,
255 YellowGreen = 0xFF9ACD32
269 AlphaMask = 0xff000000,
270 RedMask = 0x00ff0000,
271 GreenMask = 0x0000ff00,
272 BlueMask = 0x000000ff
281 return (((ARGB) (b) << BlueShift) |
282 ((ARGB) (g) << GreenShift) |
283 ((ARGB) (r) << RedShift) |
284 ((ARGB) (a) << AlphaShift));
Implements definition and operations with color.
Definition: Color.h:27
Color(BYTE r, BYTE g, BYTE b)
Definition: Color.h:40
static ARGB MakeARGB(BYTE a, BYTE r, BYTE g, BYTE b)
Assemble A, R, G, B values into a 32-bit integer.
Definition: Color.h:276