xtd_c - Reference Guide 0.2.0
color

Definition

Represents an ARGB (alpha, red, green, blue) color.

Library
xtd_c.drawing
Remarks
Named colors are represented by using the properties of the xtd_drawing_color structure. For more information about these colors, see Colors by Name.
The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). Each of the four components is a number from 0 through 255, with 0 representing no intensity and 255 representing full intensity. The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. To determine the alpha, red, green, or blue component of a color, use the xtd_drawing_color::a, xtd_drawing_color::r, xtd_drawing_color::g, or xtd_drawing_color::b property, respectively. You can create a custom color by using one of the xtd_drawing_color::from_argb methods
Examples
The following code example demonstrates the xtd_drawing_color::a, xtd_drawing_color::r, xtd_drawing_color::g, and B properties of a xtd_drawing_color, and the Implicit(size to size_f) member.
This example is designed to be used with a Windows Form (xtd::forms). Paste the code into the form and call the show_properties_of_slate_blue method from the form's xtd::forms::control::paint event-handling method, passing e as xtd::forms::paint_event_args.
void show_properties_of_slate_blue(xtd_forms_paint_event_args e) {
color slate_blue = xtd_drawing_color_from_name("slate blue");
byte_t a = slate_blue.a;
byte_t r = slate_blue.r;
byte_t g = slate_blue.g;
byte_t b = slate_blue.b;
char text[256];
sprintf(text, "Slate blue has these ARGB values: alpha:%d, red:%d, green:%d, blue:%d", a, r, g, b);
e.graphics->draw_string(text, xtd_drawing_font(xtd_forms_control_get_font(main_form), xtd_drawing_font_style_italic), xtd_drawing_solid_brush_create(slate_blue), xtd_drawing_rectangle_f_create_from_point_f_and_size_f(xtd_drawing_point_f(0.0f, 0.0f), (xtd_drawing_size_f){xtd_forms_control_get_size().x, xtd_forms_control_get_size().y});
}

Data Structures

struct  xtd_drawing_color
 Represents an ARGB (alpha, red, green, blue) color. More...
 

Variables

bool xtd_drawing_color::__empty__
 Must be set to false. More...
 
intptr_t xtd_drawing_color::__handle__
 Must be set to 0. More...
 
xtd_drawing_known_color xtd_drawing_color::__known_color__
 Must be set to 0. More...
 
byte_t xtd_drawing_color::a
 Gets or sets the alpha component value of this xtd_drawing_color struct. More...
 
byte_t xtd_drawing_color::b
 Gets or sets the blue component value of this xtd_drawing_color struct. More...
 
byte_t xtd_drawing_color::g
 Gets or sets the green component value of this xtd_drawing_color struct. More...
 
byte_t xtd_drawing_color::r
 Gets or sets the red component value of this xtd_drawing_color struct. More...
 

Fields

xtd_drawing_color xtd_drawing_color_empty ()
 Represents a color that is null. More...
 
xtd_drawing_color xtd_drawing_color_transparent ()
 Gets a system-defined color that has an ARGB value of 0x00FFFFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_alice_blue ()
 Gets a system-defined color that has an ARGB value of 0xFFF0F8FF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_antique_white ()
 Gets a system-defined color that has an ARGB value of 0xFFFAEBD7. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_aqua ()
 Gets a system-defined color that has an ARGB value of 0xFF00FFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_aquamarine ()
 Gets a system-defined color that has an ARGB value of 0xFF7FFFD4. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_azure ()
 Gets a system-defined color that has an ARGB value of 0xFFF0FFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_beige ()
 Gets a system-defined color that has an ARGB value of 0xFFF5F5DC. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_bisque ()
 Gets a system-defined color that has an ARGB value of 0xFFFFE4C4. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_black ()
 Gets a system-defined color that has an ARGB value of 0xFF000000. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_blanched_almond ()
 Gets a system-defined color that has an ARGB value of 0xFFFFEBCD. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF0000FF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_blue_violet ()
 Gets a system-defined color that has an ARGB value of 0xFF8A2BE2. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_brown ()
 Gets a system-defined color that has an ARGB value of 0xFFA52A2A. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_burly_wood ()
 Gets a system-defined color that has an ARGB value of 0xFFDEB887. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_cadet_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF5F9EA0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_chartreuse ()
 Gets a system-defined color that has an ARGB value of 0xFF7FFF00. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_chocolate ()
 Gets a system-defined color that has an ARGB value of 0xFFD2691E. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_coral ()
 Gets a system-defined color that has an ARGB value of 0xFFFF7F50. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_cornflower_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF6495ED. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_cornsilk ()
 Gets a system-defined color that has an ARGB value of 0xFFFFF8DC. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_crimson ()
 Gets a system-defined color that has an ARGB value of 0xFFDC143C. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_cyan ()
 Gets a system-defined color that has an ARGB value of 0xFF00FFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF00008B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_cyan ()
 Gets a system-defined color that has an ARGB value of 0xFF008B8B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_goldenrod ()
 Gets a system-defined color that has an ARGB value of 0xFFB8860B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_gray ()
 Gets a system-defined color that has an ARGB value of 0xFFA9A9A9. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_green ()
 Gets a system-defined color that has an ARGB value of 0xFF006400. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_khaki ()
 Gets a system-defined color that has an ARGB value of 0xFFBDB76B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_magenta ()
 Gets a system-defined color that has an ARGB value of 0xFF8B008B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_olive_green ()
 Gets a system-defined color that has an ARGB value of 0xFF556B2F. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_orange ()
 Gets a system-defined color that has an ARGB value of 0xFFFF8C00. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_orchid ()
 Gets a system-defined color that has an ARGB value of 0xFF9932CC. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_red ()
 Gets a system-defined color that has an ARGB value of 0xFF8B0000. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_salmon ()
 Gets a system-defined color that has an ARGB value of 0xFFE9967A. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_sea_green ()
 Gets a system-defined color that has an ARGB value of 0xFF8FBC8B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_slate_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF483D8B. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_slate_gray ()
 Gets a system-defined color that has an ARGB value of 0xFF2F4F4F. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_turquoise ()
 Gets a system-defined color that has an ARGB value of 0xFF00CED1. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dark_violet ()
 Gets a system-defined color that has an ARGB value of 0xFF9400D3. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_deep_pink ()
 Gets a system-defined color that has an ARGB value of 0xFFFF1493. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_deep_sky_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF00BFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dim_gray ()
 Gets a system-defined color that has an ARGB value of 0xFF696969. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_dodger_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF1E90FF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_firebrick ()
 Gets a system-defined color that has an ARGB value of 0xFFB22222. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_floral_white ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFAF0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_forest_green ()
 Gets a system-defined color that has an ARGB value of 0xFF228B22. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_fuchsia ()
 Gets a system-defined color that has an ARGB value of 0xFFFF00FF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_gainsboro ()
 Gets a system-defined color that has an ARGB value of 0xFFDCDCDC. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_ghost_white ()
 Gets a system-defined color that has an ARGB value of 0xFFF8F8FF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_gold ()
 Gets a system-defined color that has an ARGB value of 0xFFFFD700. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_goldenrod ()
 Gets a system-defined color that has an ARGB value of 0xFFDAA520. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_gray ()
 Gets a system-defined color that has an ARGB value of 0xFF808080. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_green ()
 Gets a system-defined color that has an ARGB value of 0xFF008000. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_green_yellow ()
 Gets a system-defined color that has an ARGB value of 0xFFADFF2F. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_honeydew ()
 Gets a system-defined color that has an ARGB value of 0xFFF0FFF0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_hot_pink ()
 Gets a system-defined color that has an ARGB value of 0xFFFF69B4. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_indian_red ()
 Gets a system-defined color that has an ARGB value of 0xFFCD5C5C. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_indigo ()
 Gets a system-defined color that has an ARGB value of 0xFF4B0082. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_ivory ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFFF0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_khaki ()
 Gets a system-defined color that has an ARGB value of 0xFFF0E68C. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_lavender ()
 Gets a system-defined color that has an ARGB value of 0xFFE6E6FA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_lavender_blush ()
 Gets a system-defined color that has an ARGB value of 0xFFFFF0F5. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_lawn_green ()
 Gets a system-defined color that has an ARGB value of 0xFF7CFC00. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_lemon_chiffon ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFACD. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_blue ()
 Gets a system-defined color that has an ARGB value of 0xFFADD8E6. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_coral ()
 Gets a system-defined color that has an ARGB value of 0xFFF08080. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_cyan ()
 Gets a system-defined color that has an ARGB value of 0xFFE0FFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_goldenrod_yellow ()
 Gets a system-defined color that has an ARGB value of 0xFFFAFAD2. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_gray ()
 Gets a system-defined color that has an ARGB value of 0xFFD3D3D3. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_green ()
 Gets a system-defined color that has an ARGB value of 0xFF90EE90. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_pink ()
 Gets a system-defined color that has an ARGB value of 0xFFFFB6C1. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_salmon ()
 Gets a system-defined color that has an ARGB value of 0xFFFFA07A. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_sea_green ()
 Gets a system-defined color that has an ARGB value of 0xFF20B2AA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_sky_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF87CEFA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_slate_gray ()
 Gets a system-defined color that has an ARGB value of 0xFF778899. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_steel_blue ()
 Gets a system-defined color that has an ARGB value of 0xFFB0C4DE. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_light_yellow ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFFE0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_lime ()
 Gets a system-defined color that has an ARGB value of 0xFF00FF00. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_lime_green ()
 Gets a system-defined color that has an ARGB value of 0xFF32CD32. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_linen ()
 Gets a system-defined color that has an ARGB value of 0xFFFAF0E6. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_magenta ()
 Gets a system-defined color that has an ARGB value of 0xFFFF00FF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_maroon ()
 Gets a system-defined color that has an ARGB value of 0xFF800000. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_aquamarine ()
 Gets a system-defined color that has an ARGB value of 0xFF66CDAA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF0000CD. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_orchid ()
 Gets a system-defined color that has an ARGB value of 0xFFBA55D3. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_purple ()
 Gets a system-defined color that has an ARGB value of 0xFF9370DB. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_sea_green ()
 Gets a system-defined color that has an ARGB value of 0xFF3CB371. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_slate_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF7B68EE. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_spring_green ()
 Gets a system-defined color that has an ARGB value of 0xFF00FA9A. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_turquoise ()
 Gets a system-defined color that has an ARGB value of 0xFF48D1CC. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_medium_violet_red ()
 Gets a system-defined color that has an ARGB value of 0xFFC71585. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_midnight_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF191970. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_mint_cream ()
 Gets a system-defined color that has an ARGB value of 0xFFF5FFFA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_misty_rose ()
 Gets a system-defined color that has an ARGB value of 0xFFFFE4E1. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_moccasin ()
 Gets a system-defined color that has an ARGB value of 0xFFFFE4B5. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_navajo_white ()
 Gets a system-defined color that has an ARGB value of 0xFFFFDEAD. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_navy ()
 Gets a system-defined color that has an ARGB value of 0xFF000080. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_old_lace ()
 Gets a system-defined color that has an ARGB value of 0xFFFDF5E6. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_olive ()
 Gets a system-defined color that has an ARGB value of 0xFF808000. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_olive_drab ()
 Gets a system-defined color that has an ARGB value of 0xFF6B8E23. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_orange ()
 Gets a system-defined color that has an ARGB value of 0xFFFFA500. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_orange_red ()
 Gets a system-defined color that has an ARGB value of 0xFFFF4500. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_orchid ()
 Gets a system-defined color that has an ARGB value of 0xFFDA70D6. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_pale_goldenrod ()
 Gets a system-defined color that has an ARGB value of 0xFFEEE8AA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_pale_green ()
 Gets a system-defined color that has an ARGB value of 0xFF98FB98. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_pale_turquoise ()
 Gets a system-defined color that has an ARGB value of 0xFFAFEEEE. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_pale_violet_red ()
 Gets a system-defined color that has an ARGB value of 0xFFDB7093. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_papaya_whip ()
 Gets a system-defined color that has an ARGB value of 0xFFFFEFD5. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_peach_puff ()
 Gets a system-defined color that has an ARGB value of 0xFFFFDAB9. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_peru ()
 Gets a system-defined color that has an ARGB value of 0xFFCD853F. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_pink ()
 Gets a system-defined color that has an ARGB value of 0xFFFFC0CB. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_plum ()
 Gets a system-defined color that has an ARGB value of 0xFFDDA0DD. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_powder_blue ()
 Gets a system-defined color that has an ARGB value of 0xFFB0E0E6. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_purple ()
 Gets a system-defined color that has an ARGB value of 0xFF800080. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_rebecca_purple ()
 Gets a system-defined color that has an ARGB value of 0xFF663399. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_red ()
 Gets a system-defined color that has an ARGB value of 0xFFFF0000. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_rosy_brown ()
 Gets a system-defined color that has an ARGB value of 0xFFBC8F8F. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_royal_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF4169E1. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_saddle_brown ()
 Gets a system-defined color that has an ARGB value of 0xFF8B4513. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_salmon ()
 Gets a system-defined color that has an ARGB value of 0xFFFA8072. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_sandy_brown ()
 Gets a system-defined color that has an ARGB value of 0xFFF4A460. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_sea_green ()
 Gets a system-defined color that has an ARGB value of 0xFF2E8B57. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_sea_shell ()
 Gets a system-defined color that has an ARGB value of 0xFFFFF5EE. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_sienna ()
 Gets a system-defined color that has an ARGB value of 0xFFA0522D. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_silver ()
 Gets a system-defined color that has an ARGB value of 0xFFC0C0C0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_sky_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF87CEEB. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_slate_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF6A5ACD. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_slate_gray ()
 Gets a system-defined color that has an ARGB value of 0xFF708090. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_snow ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFAFA. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_spring_green ()
 Gets a system-defined color that has an ARGB value of 0xFF00FF7F. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_steel_blue ()
 Gets a system-defined color that has an ARGB value of 0xFF4682B4. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_tan ()
 Gets a system-defined color that has an ARGB value of 0xFFD2B48C. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_teal ()
 Gets a system-defined color that has an ARGB value of 0xFF008080. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_thistle ()
 Gets a system-defined color that has an ARGB value of 0xFFD8BFD8. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_tomato ()
 Gets a system-defined color that has an ARGB value of 0xFFFF6347. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_turquoise ()
 Gets a system-defined color that has an ARGB value of 0xFF40E0D0. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_violet ()
 Gets a system-defined color that has an ARGB value of 0xFFEE82EE. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_wheat ()
 Gets a system-defined color that has an ARGB value of 0xFFF5DEB3. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_white ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFFFF. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_white_smoke ()
 Gets a system-defined color that has an ARGB value of 0xFFF5F5F5. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_yellow ()
 Gets a system-defined color that has an ARGB value of 0xFFFFFF00. This field is constant. More...
 
xtd_drawing_color xtd_drawing_color_yellow_green ()
 Gets a system-defined color that has an ARGB value of 0xFF9ACD32. This field is constant. More...
 

Properties

bool xtd_drawing_color_is_dark (xtd_drawing_color color)
 Gets a value indicating wheter the specified xtd_drawing_color structure is dark color. More...
 
bool xtd_drawing_color_is_empty (xtd_drawing_color color)
 Specifies whether the specified xtd_drawing_color class is uninitialized. More...
 
bool xtd_drawing_color_is_known_color (xtd_drawing_color color)
 Gets a value indicating whether the specified xtd_drawing_color structure is a predefined color. Predefined colors are represented by the elements of the xtd::drawing::known_color enumeration. More...
 
bool xtd_drawing_color_is_light (xtd_drawing_color color)
 Gets a value indicating wheter the specified xtd_drawing_color structure is light color. More...
 
bool xtd_drawing_color_is_named_color (xtd_drawing_color color)
 Gets a value indicating whether the specified xtd_drawing_color structure is a named color or a member of the xtd::drawing::known_color enumeration. More...
 
bool xtd_drawing_color_is_system_color (xtd_drawing_color color)
 Gets a value indicating whether the specified xtd_drawing_color structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the xtd::drawing::known_color enumeration. More...
 
const char * xtd_drawing_color_name (xtd_drawing_color color)
 Gets the name of the specified xtd_drawing_color. More...
 
size_t xtd_drawing_color_name_s (xtd_drawing_color color, char *string, size_t size)
 Gets the name of the specified xtd_drawing_color. More...
 

Function Documentation

◆ xtd_drawing_color_alice_blue()

xtd_drawing_color xtd_drawing_color_alice_blue ( )

Gets a system-defined color that has an ARGB value of 0xFFF0F8FF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_antique_white()

xtd_drawing_color xtd_drawing_color_antique_white ( )

Gets a system-defined color that has an ARGB value of 0xFFFAEBD7. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_aqua()

xtd_drawing_color xtd_drawing_color_aqua ( )

Gets a system-defined color that has an ARGB value of 0xFF00FFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_aquamarine()

xtd_drawing_color xtd_drawing_color_aquamarine ( )

Gets a system-defined color that has an ARGB value of 0xFF7FFFD4. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_azure()

xtd_drawing_color xtd_drawing_color_azure ( )

Gets a system-defined color that has an ARGB value of 0xFFF0FFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_beige()

xtd_drawing_color xtd_drawing_color_beige ( )

Gets a system-defined color that has an ARGB value of 0xFFF5F5DC. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_bisque()

xtd_drawing_color xtd_drawing_color_bisque ( )

Gets a system-defined color that has an ARGB value of 0xFFFFE4C4. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_black()

xtd_drawing_color xtd_drawing_color_black ( )

Gets a system-defined color that has an ARGB value of 0xFF000000. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_blanched_almond()

xtd_drawing_color xtd_drawing_color_blanched_almond ( )

Gets a system-defined color that has an ARGB value of 0xFFFFEBCD. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_blue()

xtd_drawing_color xtd_drawing_color_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF0000FF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_blue_violet()

xtd_drawing_color xtd_drawing_color_blue_violet ( )

Gets a system-defined color that has an ARGB value of 0xFF8A2BE2. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_brown()

xtd_drawing_color xtd_drawing_color_brown ( )

Gets a system-defined color that has an ARGB value of 0xFFA52A2A. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_burly_wood()

xtd_drawing_color xtd_drawing_color_burly_wood ( )

Gets a system-defined color that has an ARGB value of 0xFFDEB887. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_cadet_blue()

xtd_drawing_color xtd_drawing_color_cadet_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF5F9EA0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_chartreuse()

xtd_drawing_color xtd_drawing_color_chartreuse ( )

Gets a system-defined color that has an ARGB value of 0xFF7FFF00. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_chocolate()

xtd_drawing_color xtd_drawing_color_chocolate ( )

Gets a system-defined color that has an ARGB value of 0xFFD2691E. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_coral()

xtd_drawing_color xtd_drawing_color_coral ( )

Gets a system-defined color that has an ARGB value of 0xFFFF7F50. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_cornflower_blue()

xtd_drawing_color xtd_drawing_color_cornflower_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF6495ED. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_cornsilk()

xtd_drawing_color xtd_drawing_color_cornsilk ( )

Gets a system-defined color that has an ARGB value of 0xFFFFF8DC. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_crimson()

xtd_drawing_color xtd_drawing_color_crimson ( )

Gets a system-defined color that has an ARGB value of 0xFFDC143C. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_cyan()

xtd_drawing_color xtd_drawing_color_cyan ( )

Gets a system-defined color that has an ARGB value of 0xFF00FFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_blue()

xtd_drawing_color xtd_drawing_color_dark_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF00008B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_cyan()

xtd_drawing_color xtd_drawing_color_dark_cyan ( )

Gets a system-defined color that has an ARGB value of 0xFF008B8B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_goldenrod()

xtd_drawing_color xtd_drawing_color_dark_goldenrod ( )

Gets a system-defined color that has an ARGB value of 0xFFB8860B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_gray()

xtd_drawing_color xtd_drawing_color_dark_gray ( )

Gets a system-defined color that has an ARGB value of 0xFFA9A9A9. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_green()

xtd_drawing_color xtd_drawing_color_dark_green ( )

Gets a system-defined color that has an ARGB value of 0xFF006400. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_khaki()

xtd_drawing_color xtd_drawing_color_dark_khaki ( )

Gets a system-defined color that has an ARGB value of 0xFFBDB76B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_magenta()

xtd_drawing_color xtd_drawing_color_dark_magenta ( )

Gets a system-defined color that has an ARGB value of 0xFF8B008B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_olive_green()

xtd_drawing_color xtd_drawing_color_dark_olive_green ( )

Gets a system-defined color that has an ARGB value of 0xFF556B2F. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_orange()

xtd_drawing_color xtd_drawing_color_dark_orange ( )

Gets a system-defined color that has an ARGB value of 0xFFFF8C00. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_orchid()

xtd_drawing_color xtd_drawing_color_dark_orchid ( )

Gets a system-defined color that has an ARGB value of 0xFF9932CC. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_red()

xtd_drawing_color xtd_drawing_color_dark_red ( )

Gets a system-defined color that has an ARGB value of 0xFF8B0000. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_salmon()

xtd_drawing_color xtd_drawing_color_dark_salmon ( )

Gets a system-defined color that has an ARGB value of 0xFFE9967A. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_sea_green()

xtd_drawing_color xtd_drawing_color_dark_sea_green ( )

Gets a system-defined color that has an ARGB value of 0xFF8FBC8B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_slate_blue()

xtd_drawing_color xtd_drawing_color_dark_slate_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF483D8B. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_slate_gray()

xtd_drawing_color xtd_drawing_color_dark_slate_gray ( )

Gets a system-defined color that has an ARGB value of 0xFF2F4F4F. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_turquoise()

xtd_drawing_color xtd_drawing_color_dark_turquoise ( )

Gets a system-defined color that has an ARGB value of 0xFF00CED1. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dark_violet()

xtd_drawing_color xtd_drawing_color_dark_violet ( )

Gets a system-defined color that has an ARGB value of 0xFF9400D3. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_deep_pink()

xtd_drawing_color xtd_drawing_color_deep_pink ( )

Gets a system-defined color that has an ARGB value of 0xFFFF1493. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_deep_sky_blue()

xtd_drawing_color xtd_drawing_color_deep_sky_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF00BFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dim_gray()

xtd_drawing_color xtd_drawing_color_dim_gray ( )

Gets a system-defined color that has an ARGB value of 0xFF696969. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_dodger_blue()

xtd_drawing_color xtd_drawing_color_dodger_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF1E90FF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_empty()

xtd_drawing_color xtd_drawing_color_empty ( )

Represents a color that is null.

Library
xtd_c.drawing

◆ xtd_drawing_color_firebrick()

xtd_drawing_color xtd_drawing_color_firebrick ( )

Gets a system-defined color that has an ARGB value of 0xFFB22222. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_floral_white()

xtd_drawing_color xtd_drawing_color_floral_white ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFAF0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_forest_green()

xtd_drawing_color xtd_drawing_color_forest_green ( )

Gets a system-defined color that has an ARGB value of 0xFF228B22. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_fuchsia()

xtd_drawing_color xtd_drawing_color_fuchsia ( )

Gets a system-defined color that has an ARGB value of 0xFFFF00FF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_gainsboro()

xtd_drawing_color xtd_drawing_color_gainsboro ( )

Gets a system-defined color that has an ARGB value of 0xFFDCDCDC. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_ghost_white()

xtd_drawing_color xtd_drawing_color_ghost_white ( )

Gets a system-defined color that has an ARGB value of 0xFFF8F8FF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_gold()

xtd_drawing_color xtd_drawing_color_gold ( )

Gets a system-defined color that has an ARGB value of 0xFFFFD700. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_goldenrod()

xtd_drawing_color xtd_drawing_color_goldenrod ( )

Gets a system-defined color that has an ARGB value of 0xFFDAA520. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_gray()

xtd_drawing_color xtd_drawing_color_gray ( )

Gets a system-defined color that has an ARGB value of 0xFF808080. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_green()

xtd_drawing_color xtd_drawing_color_green ( )

Gets a system-defined color that has an ARGB value of 0xFF008000. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_green_yellow()

xtd_drawing_color xtd_drawing_color_green_yellow ( )

Gets a system-defined color that has an ARGB value of 0xFFADFF2F. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_honeydew()

xtd_drawing_color xtd_drawing_color_honeydew ( )

Gets a system-defined color that has an ARGB value of 0xFFF0FFF0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_hot_pink()

xtd_drawing_color xtd_drawing_color_hot_pink ( )

Gets a system-defined color that has an ARGB value of 0xFFFF69B4. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_indian_red()

xtd_drawing_color xtd_drawing_color_indian_red ( )

Gets a system-defined color that has an ARGB value of 0xFFCD5C5C. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_indigo()

xtd_drawing_color xtd_drawing_color_indigo ( )

Gets a system-defined color that has an ARGB value of 0xFF4B0082. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_is_dark()

bool xtd_drawing_color_is_dark ( xtd_drawing_color  color)

Gets a value indicating wheter the specified xtd_drawing_color structure is dark color.

Library
xtd_c.drawing
Remarks
return true if dark color; otherwise false.

◆ xtd_drawing_color_is_empty()

bool xtd_drawing_color_is_empty ( xtd_drawing_color  color)

Specifies whether the specified xtd_drawing_color class is uninitialized.

Returns
bool Returns true if this color is uninitialized; otherwise, false.
Library
xtd_c.drawing

◆ xtd_drawing_color_is_known_color()

bool xtd_drawing_color_is_known_color ( xtd_drawing_color  color)

Gets a value indicating whether the specified xtd_drawing_color structure is a predefined color. Predefined colors are represented by the elements of the xtd::drawing::known_color enumeration.

Returns
bool Returns true if the specified xtd_drawing_color was created from a predefined color by using either the from_name method or the from_known_color method; otherwise, false.
Library
xtd_c.drawing
Remarks
This property does not do a comparison of the ARGB values. Therefore, when the is_known_color property is applied to a xtd_drawing_color structure that is created by using the xtd_drawing_color::from_argb method, is_known_color returns false, even if the ARGB value matches the ARGB value of a predefined color.

◆ xtd_drawing_color_is_light()

bool xtd_drawing_color_is_light ( xtd_drawing_color  color)

Gets a value indicating wheter the specified xtd_drawing_color structure is light color.

Library
xtd_c.drawing
Remarks
return true if light color; otherwise false.

◆ xtd_drawing_color_is_named_color()

bool xtd_drawing_color_is_named_color ( xtd_drawing_color  color)

Gets a value indicating whether the specified xtd_drawing_color structure is a named color or a member of the xtd::drawing::known_color enumeration.

Returns
bool Returns true if the specified xtd_drawing_color was created by using either the xtd_drawing_color::from_name method or the xtd_drawing_color::from_known_color method; otherwise, false.
Library
xtd_c.drawing

◆ xtd_drawing_color_is_system_color()

bool xtd_drawing_color_is_system_color ( xtd_drawing_color  color)

Gets a value indicating whether the specified xtd_drawing_color structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the xtd::drawing::known_color enumeration.

Returns
bool Returns true if the specified xtd_drawing_color was created from a system color by using either the xtd_drawing_color::from_name method or the xtd_drawing_color::from_known_color method; otherwise, false.
Library
xtd_c.drawing

◆ xtd_drawing_color_ivory()

xtd_drawing_color xtd_drawing_color_ivory ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFFF0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_khaki()

xtd_drawing_color xtd_drawing_color_khaki ( )

Gets a system-defined color that has an ARGB value of 0xFFF0E68C. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_lavender()

xtd_drawing_color xtd_drawing_color_lavender ( )

Gets a system-defined color that has an ARGB value of 0xFFE6E6FA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_lavender_blush()

xtd_drawing_color xtd_drawing_color_lavender_blush ( )

Gets a system-defined color that has an ARGB value of 0xFFFFF0F5. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_lawn_green()

xtd_drawing_color xtd_drawing_color_lawn_green ( )

Gets a system-defined color that has an ARGB value of 0xFF7CFC00. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_lemon_chiffon()

xtd_drawing_color xtd_drawing_color_lemon_chiffon ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFACD. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_blue()

xtd_drawing_color xtd_drawing_color_light_blue ( )

Gets a system-defined color that has an ARGB value of 0xFFADD8E6. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_coral()

xtd_drawing_color xtd_drawing_color_light_coral ( )

Gets a system-defined color that has an ARGB value of 0xFFF08080. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_cyan()

xtd_drawing_color xtd_drawing_color_light_cyan ( )

Gets a system-defined color that has an ARGB value of 0xFFE0FFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_goldenrod_yellow()

xtd_drawing_color xtd_drawing_color_light_goldenrod_yellow ( )

Gets a system-defined color that has an ARGB value of 0xFFFAFAD2. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_gray()

xtd_drawing_color xtd_drawing_color_light_gray ( )

Gets a system-defined color that has an ARGB value of 0xFFD3D3D3. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_green()

xtd_drawing_color xtd_drawing_color_light_green ( )

Gets a system-defined color that has an ARGB value of 0xFF90EE90. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_pink()

xtd_drawing_color xtd_drawing_color_light_pink ( )

Gets a system-defined color that has an ARGB value of 0xFFFFB6C1. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_salmon()

xtd_drawing_color xtd_drawing_color_light_salmon ( )

Gets a system-defined color that has an ARGB value of 0xFFFFA07A. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_sea_green()

xtd_drawing_color xtd_drawing_color_light_sea_green ( )

Gets a system-defined color that has an ARGB value of 0xFF20B2AA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_sky_blue()

xtd_drawing_color xtd_drawing_color_light_sky_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF87CEFA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_slate_gray()

xtd_drawing_color xtd_drawing_color_light_slate_gray ( )

Gets a system-defined color that has an ARGB value of 0xFF778899. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_steel_blue()

xtd_drawing_color xtd_drawing_color_light_steel_blue ( )

Gets a system-defined color that has an ARGB value of 0xFFB0C4DE. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_light_yellow()

xtd_drawing_color xtd_drawing_color_light_yellow ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFFE0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_lime()

xtd_drawing_color xtd_drawing_color_lime ( )

Gets a system-defined color that has an ARGB value of 0xFF00FF00. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_lime_green()

xtd_drawing_color xtd_drawing_color_lime_green ( )

Gets a system-defined color that has an ARGB value of 0xFF32CD32. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_linen()

xtd_drawing_color xtd_drawing_color_linen ( )

Gets a system-defined color that has an ARGB value of 0xFFFAF0E6. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_magenta()

xtd_drawing_color xtd_drawing_color_magenta ( )

Gets a system-defined color that has an ARGB value of 0xFFFF00FF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_maroon()

xtd_drawing_color xtd_drawing_color_maroon ( )

Gets a system-defined color that has an ARGB value of 0xFF800000. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_aquamarine()

xtd_drawing_color xtd_drawing_color_medium_aquamarine ( )

Gets a system-defined color that has an ARGB value of 0xFF66CDAA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_blue()

xtd_drawing_color xtd_drawing_color_medium_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF0000CD. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_orchid()

xtd_drawing_color xtd_drawing_color_medium_orchid ( )

Gets a system-defined color that has an ARGB value of 0xFFBA55D3. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_purple()

xtd_drawing_color xtd_drawing_color_medium_purple ( )

Gets a system-defined color that has an ARGB value of 0xFF9370DB. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_sea_green()

xtd_drawing_color xtd_drawing_color_medium_sea_green ( )

Gets a system-defined color that has an ARGB value of 0xFF3CB371. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_slate_blue()

xtd_drawing_color xtd_drawing_color_medium_slate_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF7B68EE. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_spring_green()

xtd_drawing_color xtd_drawing_color_medium_spring_green ( )

Gets a system-defined color that has an ARGB value of 0xFF00FA9A. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_turquoise()

xtd_drawing_color xtd_drawing_color_medium_turquoise ( )

Gets a system-defined color that has an ARGB value of 0xFF48D1CC. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_medium_violet_red()

xtd_drawing_color xtd_drawing_color_medium_violet_red ( )

Gets a system-defined color that has an ARGB value of 0xFFC71585. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_midnight_blue()

xtd_drawing_color xtd_drawing_color_midnight_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF191970. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_mint_cream()

xtd_drawing_color xtd_drawing_color_mint_cream ( )

Gets a system-defined color that has an ARGB value of 0xFFF5FFFA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_misty_rose()

xtd_drawing_color xtd_drawing_color_misty_rose ( )

Gets a system-defined color that has an ARGB value of 0xFFFFE4E1. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_moccasin()

xtd_drawing_color xtd_drawing_color_moccasin ( )

Gets a system-defined color that has an ARGB value of 0xFFFFE4B5. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_name()

const char* xtd_drawing_color_name ( xtd_drawing_color  color)

Gets the name of the specified xtd_drawing_color.

Returns
string The name of the specified xtd_drawing_color.
Library
xtd_c.drawing

◆ xtd_drawing_color_name_s()

size_t xtd_drawing_color_name_s ( xtd_drawing_color  color,
char *  string,
size_t  size 
)

Gets the name of the specified xtd_drawing_color.

Returns
string The name of the specified xtd_drawing_color.
Library
xtd_c.drawing

◆ xtd_drawing_color_navajo_white()

xtd_drawing_color xtd_drawing_color_navajo_white ( )

Gets a system-defined color that has an ARGB value of 0xFFFFDEAD. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_navy()

xtd_drawing_color xtd_drawing_color_navy ( )

Gets a system-defined color that has an ARGB value of 0xFF000080. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_old_lace()

xtd_drawing_color xtd_drawing_color_old_lace ( )

Gets a system-defined color that has an ARGB value of 0xFFFDF5E6. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_olive()

xtd_drawing_color xtd_drawing_color_olive ( )

Gets a system-defined color that has an ARGB value of 0xFF808000. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_olive_drab()

xtd_drawing_color xtd_drawing_color_olive_drab ( )

Gets a system-defined color that has an ARGB value of 0xFF6B8E23. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_orange()

xtd_drawing_color xtd_drawing_color_orange ( )

Gets a system-defined color that has an ARGB value of 0xFFFFA500. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_orange_red()

xtd_drawing_color xtd_drawing_color_orange_red ( )

Gets a system-defined color that has an ARGB value of 0xFFFF4500. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_orchid()

xtd_drawing_color xtd_drawing_color_orchid ( )

Gets a system-defined color that has an ARGB value of 0xFFDA70D6. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_pale_goldenrod()

xtd_drawing_color xtd_drawing_color_pale_goldenrod ( )

Gets a system-defined color that has an ARGB value of 0xFFEEE8AA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_pale_green()

xtd_drawing_color xtd_drawing_color_pale_green ( )

Gets a system-defined color that has an ARGB value of 0xFF98FB98. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_pale_turquoise()

xtd_drawing_color xtd_drawing_color_pale_turquoise ( )

Gets a system-defined color that has an ARGB value of 0xFFAFEEEE. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_pale_violet_red()

xtd_drawing_color xtd_drawing_color_pale_violet_red ( )

Gets a system-defined color that has an ARGB value of 0xFFDB7093. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_papaya_whip()

xtd_drawing_color xtd_drawing_color_papaya_whip ( )

Gets a system-defined color that has an ARGB value of 0xFFFFEFD5. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_peach_puff()

xtd_drawing_color xtd_drawing_color_peach_puff ( )

Gets a system-defined color that has an ARGB value of 0xFFFFDAB9. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_peru()

xtd_drawing_color xtd_drawing_color_peru ( )

Gets a system-defined color that has an ARGB value of 0xFFCD853F. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_pink()

xtd_drawing_color xtd_drawing_color_pink ( )

Gets a system-defined color that has an ARGB value of 0xFFFFC0CB. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_plum()

xtd_drawing_color xtd_drawing_color_plum ( )

Gets a system-defined color that has an ARGB value of 0xFFDDA0DD. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_powder_blue()

xtd_drawing_color xtd_drawing_color_powder_blue ( )

Gets a system-defined color that has an ARGB value of 0xFFB0E0E6. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_purple()

xtd_drawing_color xtd_drawing_color_purple ( )

Gets a system-defined color that has an ARGB value of 0xFF800080. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_rebecca_purple()

xtd_drawing_color xtd_drawing_color_rebecca_purple ( )

Gets a system-defined color that has an ARGB value of 0xFF663399. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_red()

xtd_drawing_color xtd_drawing_color_red ( )

Gets a system-defined color that has an ARGB value of 0xFFFF0000. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_rosy_brown()

xtd_drawing_color xtd_drawing_color_rosy_brown ( )

Gets a system-defined color that has an ARGB value of 0xFFBC8F8F. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_royal_blue()

xtd_drawing_color xtd_drawing_color_royal_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF4169E1. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_saddle_brown()

xtd_drawing_color xtd_drawing_color_saddle_brown ( )

Gets a system-defined color that has an ARGB value of 0xFF8B4513. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_salmon()

xtd_drawing_color xtd_drawing_color_salmon ( )

Gets a system-defined color that has an ARGB value of 0xFFFA8072. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_sandy_brown()

xtd_drawing_color xtd_drawing_color_sandy_brown ( )

Gets a system-defined color that has an ARGB value of 0xFFF4A460. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_sea_green()

xtd_drawing_color xtd_drawing_color_sea_green ( )

Gets a system-defined color that has an ARGB value of 0xFF2E8B57. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_sea_shell()

xtd_drawing_color xtd_drawing_color_sea_shell ( )

Gets a system-defined color that has an ARGB value of 0xFFFFF5EE. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_sienna()

xtd_drawing_color xtd_drawing_color_sienna ( )

Gets a system-defined color that has an ARGB value of 0xFFA0522D. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_silver()

xtd_drawing_color xtd_drawing_color_silver ( )

Gets a system-defined color that has an ARGB value of 0xFFC0C0C0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_sky_blue()

xtd_drawing_color xtd_drawing_color_sky_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF87CEEB. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_slate_blue()

xtd_drawing_color xtd_drawing_color_slate_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF6A5ACD. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_slate_gray()

xtd_drawing_color xtd_drawing_color_slate_gray ( )

Gets a system-defined color that has an ARGB value of 0xFF708090. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_snow()

xtd_drawing_color xtd_drawing_color_snow ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFAFA. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_spring_green()

xtd_drawing_color xtd_drawing_color_spring_green ( )

Gets a system-defined color that has an ARGB value of 0xFF00FF7F. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_steel_blue()

xtd_drawing_color xtd_drawing_color_steel_blue ( )

Gets a system-defined color that has an ARGB value of 0xFF4682B4. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_tan()

xtd_drawing_color xtd_drawing_color_tan ( )

Gets a system-defined color that has an ARGB value of 0xFFD2B48C. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_teal()

xtd_drawing_color xtd_drawing_color_teal ( )

Gets a system-defined color that has an ARGB value of 0xFF008080. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_thistle()

xtd_drawing_color xtd_drawing_color_thistle ( )

Gets a system-defined color that has an ARGB value of 0xFFD8BFD8. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_tomato()

xtd_drawing_color xtd_drawing_color_tomato ( )

Gets a system-defined color that has an ARGB value of 0xFFFF6347. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_transparent()

xtd_drawing_color xtd_drawing_color_transparent ( )

Gets a system-defined color that has an ARGB value of 0x00FFFFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_turquoise()

xtd_drawing_color xtd_drawing_color_turquoise ( )

Gets a system-defined color that has an ARGB value of 0xFF40E0D0. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_violet()

xtd_drawing_color xtd_drawing_color_violet ( )

Gets a system-defined color that has an ARGB value of 0xFFEE82EE. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_wheat()

xtd_drawing_color xtd_drawing_color_wheat ( )

Gets a system-defined color that has an ARGB value of 0xFFF5DEB3. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_white()

xtd_drawing_color xtd_drawing_color_white ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFFFF. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_white_smoke()

xtd_drawing_color xtd_drawing_color_white_smoke ( )

Gets a system-defined color that has an ARGB value of 0xFFF5F5F5. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_yellow()

xtd_drawing_color xtd_drawing_color_yellow ( )

Gets a system-defined color that has an ARGB value of 0xFFFFFF00. This field is constant.

Library
xtd_c.drawing

◆ xtd_drawing_color_yellow_green()

xtd_drawing_color xtd_drawing_color_yellow_green ( )

Gets a system-defined color that has an ARGB value of 0xFF9ACD32. This field is constant.

Library
xtd_c.drawing

Variable Documentation

◆ __empty__

bool xtd_drawing_color::__empty__

Must be set to false.

Library
xtd_c.drawing
Warning
Internal use only

◆ __handle__

intptr_t xtd_drawing_color::__handle__

Must be set to 0.

Library
xtd_c.drawing
Warning
Internal use only

◆ __known_color__

xtd_drawing_known_color xtd_drawing_color::__known_color__

Must be set to 0.

Library
xtd_c.drawing
Warning
Internal use only

◆ a

byte_t xtd_drawing_color::a

Gets or sets the alpha component value of this xtd_drawing_color struct.

Returns
byte The alpha component value of this xtd_drawing_color.
Library
xtd_c.drawing
Remarks
The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an xtd_drawing_color::a value of 255 represents an opaque color. An xtd_drawing_color::a value from 1 through 254 represents a semitransparent color. The color becomes more opaque as xtd_drawing_color::a approaches 255.

◆ b

byte_t xtd_drawing_color::b

Gets or sets the blue component value of this xtd_drawing_color struct.

Returns
byte The blue component value of this xtd_drawing_color.
Library
xtd_c.drawing
Remarks
The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an xtd_drawing_color::a value of 255 represents an opaque color. An xtd_drawing_color::a value from 1 through 254 represents a semitransparent color. The color becomes more opaque as xtd_drawing_color::a approaches 255.

◆ g

byte_t xtd_drawing_color::g

Gets or sets the green component value of this xtd_drawing_color struct.

Returns
byte The green component value of this xtd_drawing_color.
Library
xtd_c.drawing
Remarks
The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an xtd_drawing_color::a value of 255 represents an opaque color. An xtd_drawing_color::a value from 1 through 254 represents a semitransparent color. The color becomes more opaque as xtd_drawing_color::a approaches 255.

◆ r

byte_t xtd_drawing_color::r

Gets or sets the red component value of this xtd_drawing_color struct.

Returns
byte The red component value of this xtd_drawing_color.
Library
xtd_c.drawing
Remarks
The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. Likewise, an xtd_drawing_color::a value of 255 represents an opaque color. An xtd_drawing_color::a value from 1 through 254 represents a semitransparent color. The color becomes more opaque as xtd_drawing_color::a approaches 255.