Color class
Color class
The color of the pixel.
The Color type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Constructs a new instance of Color |
Properties
| Property | Description |
|---|---|
| empty | Gets an empty Color. |
| transparent | Gets a system-defined color. |
| alice_blue | Gets a system-defined color. |
| antique_white | Gets a system-defined color. |
| aqua | Gets a system-defined color. |
| aquamarine | Gets a system-defined color. |
| azure | Gets a system-defined color. |
| beige | Gets a system-defined color. |
| bisque | Gets a system-defined color. |
| black | Gets a system-defined color. |
| blanched_almond | Gets a system-defined color. |
| blue | Gets a system-defined color. |
| blue_violet | Gets a system-defined color. |
| brown | Gets a system-defined color. |
| burly_wood | Gets a system-defined color. |
| cadet_blue | Gets a system-defined color. |
| chartreuse | Gets a system-defined color. |
| chocolate | Gets a system-defined color. |
| coral | Gets a system-defined color. |
| cornflower_blue | Gets a system-defined color. |
| cornsilk | Gets a system-defined color. |
| crimson | Gets a system-defined color. |
| cyan | Gets a system-defined color. |
| dark_blue | Gets a system-defined color. |
| dark_cyan | Gets a system-defined color. |
| dark_goldenrod | Gets a system-defined color. |
| dark_gray | Gets a system-defined color. |
| dark_green | Gets a system-defined color. |
| dark_khaki | Gets a system-defined color. |
| dark_magenta | Gets a system-defined color. |
| dark_olive_green | Gets a system-defined color. |
| dark_orange | Gets a system-defined color. |
| dark_orchid | Gets a system-defined color. |
| dark_red | Gets a system-defined color. |
| dark_salmon | Gets a system-defined color. |
| dark_sea_green | Gets a system-defined color. |
| dark_slate_blue | Gets a system-defined color. |
| dark_slate_gray | Gets a system-defined color. |
| dark_turquoise | Gets a system-defined color. |
| dark_violet | Gets a system-defined color. |
| deep_pink | Gets a system-defined color. |
| deep_sky_blue | Gets a system-defined color. |
| dim_gray | Gets a system-defined color. |
| dodger_blue | Gets a system-defined color. |
| firebrick | Gets a system-defined color. |
| floral_white | Gets a system-defined color. |
| forest_green | Gets a system-defined color. |
| fuchsia | Gets a system-defined color. |
| gainsboro | Gets a system-defined color. |
| ghost_white | Gets a system-defined color. |
| gold | Gets a system-defined color. |
| goldenrod | Gets a system-defined color. |
| gray | Gets a system-defined color. |
| green | Gets a system-defined color. |
| green_yellow | Gets a system-defined color. |
| honeydew | Gets a system-defined color. |
| hot_pink | Gets a system-defined color. |
| indian_red | Gets a system-defined color. |
| indigo | Gets a system-defined color. |
| ivory | Gets a system-defined color. |
| khaki | Gets a system-defined color. |
| lavender | Gets a system-defined color. |
| lavender_blush | Gets a system-defined color. |
| lawn_green | Gets a system-defined color. |
| lemon_chiffon | Gets a system-defined color. |
| light_blue | Gets a system-defined color. |
| light_coral | Gets a system-defined color. |
| light_cyan | Gets a system-defined color. |
| light_goldenrod_yellow | Gets a system-defined color. |
| light_green | Gets a system-defined color. |
| light_gray | Gets a system-defined color. |
| light_pink | Gets a system-defined color. |
| light_salmon | Gets a system-defined color. |
| light_sea_green | Gets a system-defined color. |
| light_sky_blue | Gets a system-defined color. |
| light_slate_gray | Gets a system-defined color. |
| light_steel_blue | Gets a system-defined color. |
| light_yellow | Gets a system-defined color. |
| lime | Gets a system-defined color. |
| lime_green | Gets a system-defined color. |
| linen | Gets a system-defined color. |
| magenta | Gets a system-defined color. |
| maroon | Gets a system-defined color. |
| medium_aquamarine | Gets a system-defined color. |
| medium_blue | Gets a system-defined color. |
| medium_orchid | Gets a system-defined color. |
| medium_purple | Gets a system-defined color. |
| medium_sea_green | Gets a system-defined color. |
| medium_slate_blue | Gets a system-defined color. |
| medium_spring_green | Gets a system-defined color. |
| medium_turquoise | Gets a system-defined color. |
| medium_violet_red | Gets a system-defined color. |
| midnight_blue | Gets a system-defined color. |
| mint_cream | Gets a system-defined color. |
| misty_rose | Gets a system-defined color. |
| moccasin | Gets a system-defined color. |
| navajo_white | Gets a system-defined color. |
| navy | Gets a system-defined color. |
| old_lace | Gets a system-defined color. |
| olive | Gets a system-defined color. |
| olive_drab | Gets a system-defined color. |
| orange | Gets a system-defined color. |
| orange_red | Gets a system-defined color. |
| orchid | Gets a system-defined color. |
| pale_goldenrod | Gets a system-defined color. |
| pale_green | Gets a system-defined color. |
| pale_turquoise | Gets a system-defined color. |
| pale_violet_red | Gets a system-defined color. |
| papaya_whip | Gets a system-defined color. |
| peach_puff | Gets a system-defined color. |
| peru | Gets a system-defined color. |
| pink | Gets a system-defined color. |
| plum | Gets a system-defined color. |
| powder_blue | Gets a system-defined color. |
| purple | Gets a system-defined color. |
| red | Gets a system-defined color. |
| rosy_brown | Gets a system-defined color. |
| royal_blue | Gets a system-defined color. |
| saddle_brown | Gets a system-defined color. |
| salmon | Gets a system-defined color. |
| sandy_brown | Gets a system-defined color. |
| sea_green | Gets a system-defined color. |
| sea_shell | Gets a system-defined color. |
| sienna | Gets a system-defined color. |
| silver | Gets a system-defined color. |
| sky_blue | Gets a system-defined color. |
| slate_blue | Gets a system-defined color. |
| slate_gray | Gets a system-defined color. |
| snow | Gets a system-defined color. |
| spring_green | Gets a system-defined color. |
| steel_blue | Gets a system-defined color. |
| tan | Gets a system-defined color. |
| teal | Gets a system-defined color. |
| thistle | Gets a system-defined color. |
| tomato | Gets a system-defined color. |
| turquoise | Gets a system-defined color. |
| violet | Gets a system-defined color. |
| wheat | Gets a system-defined color. |
| white | Gets a system-defined color. |
| white_smoke | Gets a system-defined color. |
| yellow | Gets a system-defined color. |
| yellow_green | Gets a system-defined color. |
| r | Gets the red component value of this Color structure. |
| g | Gets the green component value of this Color structure. |
| b | Gets the blue component value of this Color structure. |
| a | Gets the alpha component value of this Color structure. |
| is_known_color | Gets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration. |
| is_empty | Gets a value indicating whether this Color structure is uninitialized. |
| is_named_color | Gets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration. |
| name | Gets the name of this Color. |
Methods
| Method | Description |
|---|---|
| from_argb | Creates a Color structure from a 32-bit ARGB value. |
| from_argb | Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits. |
| from_argb | Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits. |
| from_argb | Creates a Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits. |
| to_cmyk | The conversion from Color to CMYKColor. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmyk. |
| to_cmyk | The conversion from Color to CMYKColor. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmyk. |
| to_cmyk_icc | The conversion from Color to CMYKColor using icc conversion with default profiles. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmykIcc. |
| to_cmyk_icc | The conversion from Color to CMYKColor using icc conversion with default profiles. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmykIcc. |
| to_cmyk_icc | The conversion from Color to CMYKColor using icc conversion. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmykIcc. |
| to_cmyk_icc | The conversion from Color to CMYKColor using icc conversion with default profiles. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmykIcc. |
| from_known_color | Creates a Color structure from the specified predefined color. |
| from_name | Creates a Color structure from the specified name of a predefined color. |
| get_brightness | Gets the hue-saturation-brightness (HSB) brightness value for this Color structure. |
| get_hue | Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure. |
| get_saturation | Gets the hue-saturation-brightness (HSB) saturation value for this Color structure. |
| to_argb | Gets the 32-bit ARGB value of this Color structure. |
| to_known_color | Gets the KnownColor value of this Color structure. |
| make_argb | Makes the ARGB value. |
See Also
- module
aspose.cad - class
Color - class
KnownColor