
**Summary:** The color of the pixel.

**Module:** [aspose.imaging](/imaging/python-net/aspose.imaging/)

**Full Name:** aspose.imaging.Color

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [Color()](#Color__1) | Initializes a new instance of the Color class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| a | System.Byte | r | Gets the alpha component value of this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| alice_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| antique_white [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| aqua [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| aquamarine [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| azure [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| b | System.Byte | r | Gets the blue component value of this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| beige [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| bisque [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| black [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| blanched_almond [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| blue_violet [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| brown [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| burly_wood [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| cadet_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| chartreuse [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| chocolate [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| coral [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| cornflower_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| cornsilk [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| crimson [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| cyan [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_cyan [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_goldenrod [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_khaki [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_magenta [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_olive_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_orange [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_orchid [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_red [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_salmon [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_sea_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_slate_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_slate_gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_turquoise [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dark_violet [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| deep_pink [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| deep_sky_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dim_gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| dodger_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| empty [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets an empty [Color](/imaging/python-net/aspose.imaging/color/). |
| firebrick [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| floral_white [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| forest_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| fuchsia [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| g | System.Byte | r | Gets the green component value of this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| gainsboro [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| ghost_white [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| gold [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| goldenrod [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| green_yellow [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| honeydew [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| hot_pink [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| indian_red [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| indigo [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| is_empty | bool | r | Gets a value indicating whether this [Color](/imaging/python-net/aspose.imaging/color/) structure is uninitialized. |
| is_known_color | bool | r | Gets a value indicating whether this [Color](/imaging/python-net/aspose.imaging/color/) structure is a predefined color. Predefined colors are represented by the elements of the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) enumeration. |
| is_named_color | bool | r | Gets a value indicating whether this [Color](/imaging/python-net/aspose.imaging/color/) structure is a named color or a member of the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) enumeration. |
| ivory [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| khaki [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| lavender [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| lavender_blush [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| lawn_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| lemon_chiffon [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_coral [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_cyan [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_goldenrod_yellow [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_pink [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_salmon [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_sea_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_sky_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_slate_gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_steel_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| light_yellow [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| lime [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| lime_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| linen [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| magenta [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| maroon [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_aquamarine [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_orchid [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_purple [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_sea_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_slate_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_spring_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_turquoise [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| medium_violet_red [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| midnight_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| mint_cream [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| misty_rose [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| moccasin [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| name | string | r | Gets the name of this [Color](/imaging/python-net/aspose.imaging/color/). |
| navajo_white [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| navy [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| old_lace [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| olive [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| olive_drab [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| orange [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| orange_red [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| orchid [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| pale_goldenrod [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| pale_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| pale_turquoise [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| pale_violet_red [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| papaya_whip [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| peach_puff [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| peru [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| pink [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| plum [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| powder_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| purple [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| r | System.Byte | r | Gets the red component value of this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| red [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| rosy_brown [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| royal_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| saddle_brown [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| salmon [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| sandy_brown [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| sea_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| sea_shell [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| sienna [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| silver [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| sky_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| slate_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| slate_gray [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| snow [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| spring_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| steel_blue [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| tan [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| teal [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| thistle [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| tomato [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| transparent [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| turquoise [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| violet [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| wheat [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| white [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| white_smoke [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| yellow [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
| yellow_green [static] | [Color](/imaging/python-net/aspose.imaging/color/) | r | Gets a system-defined color. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [from_argb(alpha, base_color)](#from_argb_alpha_base_color_1) | Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from the specified [Color](/imaging/python-net/aspose.imaging/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(alpha, red, green, blue)](#from_argb_alpha_red_green_blue_2) | Creates a [Color](/imaging/python-net/aspose.imaging/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(argb)](#from_argb_argb_3) | Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from a 32-bit ARGB value. |
| [from_argb(red, green, blue)](#from_argb_red_green_blue_4) | Creates a [Color](/imaging/python-net/aspose.imaging/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. |
| [from_known_color(color)](#from_known_color_color_5) | Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from the specified predefined color. |
| [from_name(name)](#from_name_name_6) | Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from the specified name of a predefined color. |
| [get_brightness()](#get_brightness__7) | Gets the hue-saturation-brightness (HSB) brightness value for this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| [get_hue()](#get_hue__8) | Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| [get_saturation()](#get_saturation__9) | Gets the hue-saturation-brightness (HSB) saturation value for this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| [to_argb()](#to_argb__10) | Gets the 32-bit ARGB value of this [Color](/imaging/python-net/aspose.imaging/color/) structure. |
| [to_cmyk(pixel)](#to_cmyk_pixel_11) | The conversion from Color to CMYKColor.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk(pixels)](#to_cmyk_pixels_12) | The conversion from Color to CMYKColor.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_color(pixel)](#to_cmyk_color_pixel_13) | The conversion from Color to CMYKColor.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk(pixel)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_color_with_def_icc(pixel)](#to_cmyk_color_with_def_icc_pixel_14) | The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixel)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_color_with_icc(pixel, rgb_icc_stream, cmyk_icc_stream)](#to_cmyk_color_with_icc_pixel_rgb_icc_stream_cmyk_icc_stream_15) | The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixel, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_colors(pixels)](#to_cmyk_colors_pixels_16) | The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_colors_with_def_icc(pixels)](#to_cmyk_colors_with_def_icc_pixels_17) | The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_colors_with_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](#to_cmyk_colors_with_icc_pixels_rgb_icc_stream_cmyk_icc_stream_18) | The conversion from Color to CMYKColor using icc conversion.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_icc(pixel)](#to_cmyk_icc_pixel_19) | The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixel)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_icc(pixel, rgb_icc_stream, cmyk_icc_stream)](#to_cmyk_icc_pixel_rgb_icc_stream_cmyk_icc_stream_20) | The conversion from Color to CMYKColor using icc conversion.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_icc(pixels)](#to_cmyk_icc_pixels_21) | The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](#to_cmyk_icc_pixels_rgb_icc_stream_cmyk_icc_stream_22) | The conversion from Color to CMYKColor using icc conversion.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/). |
| [to_known_color()](#to_known_color__23) | Gets the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) value of this [Color](/imaging/python-net/aspose.imaging/color/) structure. |


### Constructor: Color() {#Color__1}


```
 Color() 
```

Initializes a new instance of the Color class

### Method: from_argb(alpha, base_color)  [static] {#from_argb_alpha_base_color_1}


```
 from_argb(alpha, base_color) 
```

Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from the specified [Color](/imaging/python-net/aspose.imaging/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.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| alpha | int | The alpha value for the new [Color](/imaging/python-net/aspose.imaging/color/). Valid values are 0 through 255. |
| base_color | [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) from which to create the new [Color](/imaging/python-net/aspose.imaging/color/). |

**Returns**

| Type | Description |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) that this method creates. |


### Method: from_argb(alpha, red, green, blue)  [static] {#from_argb_alpha_red_green_blue_2}


```
 from_argb(alpha, red, green, blue) 
```

Creates a [Color](/imaging/python-net/aspose.imaging/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.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| alpha | int | The alpha component. Valid values are 0 through 255. |
| red | int | The red component. Valid values are 0 through 255. |
| green | int | The green component. Valid values are 0 through 255. |
| blue | int | The blue component. Valid values are 0 through 255. |

**Returns**

| Type | Description |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) that this method creates. |


### Method: from_argb(argb)  [static] {#from_argb_argb_3}


```
 from_argb(argb) 
```

Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from a 32-bit ARGB value.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| argb | int | A value specifying the 32-bit ARGB value. |

**Returns**

| Type | Description |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) structure that this method creates. |


### Method: from_argb(red, green, blue)  [static] {#from_argb_red_green_blue_4}


```
 from_argb(red, green, blue) 
```

Creates a [Color](/imaging/python-net/aspose.imaging/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.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| red | int | The red component value for the new [Color](/imaging/python-net/aspose.imaging/color/). Valid values are 0 through 255. |
| green | int | The green component value for the new [Color](/imaging/python-net/aspose.imaging/color/). Valid values are 0 through 255. |
| blue | int | The blue component value for the new [Color](/imaging/python-net/aspose.imaging/color/). Valid values are 0 through 255. |

**Returns**

| Type | Description |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) that this method creates. |


### Method: from_known_color(color)  [static] {#from_known_color_color_5}


```
 from_known_color(color) 
```

Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from the specified predefined color.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| color | [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) | An element of the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) enumeration. |

**Returns**

| Type | Description |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) that this method creates. |


### Method: from_name(name)  [static] {#from_name_name_6}


```
 from_name(name) 
```

Creates a [Color](/imaging/python-net/aspose.imaging/color/) structure from the specified name of a predefined color.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| name | string | A string that is the name of a predefined color. Valid names are the same as the names of the elements of the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) enumeration. |

**Returns**

| Type | Description |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | The [Color](/imaging/python-net/aspose.imaging/color/) that this method creates. |


### Method: get_brightness() {#get_brightness__7}


```
 get_brightness() 
```

Gets the hue-saturation-brightness (HSB) brightness value for this [Color](/imaging/python-net/aspose.imaging/color/) structure.

**Returns**

| Type | Description |
| :- | :- |
| float | The brightness of this [Color](/imaging/python-net/aspose.imaging/color/). The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white. |


### Method: get_hue() {#get_hue__8}


```
 get_hue() 
```

Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this [Color](/imaging/python-net/aspose.imaging/color/) structure.

**Returns**

| Type | Description |
| :- | :- |
| float | The hue, in degrees, of this [Color](/imaging/python-net/aspose.imaging/color/). The hue is measured in degrees, ranging from 0.0 through 360.0, in HSB color space. |


### Method: get_saturation() {#get_saturation__9}


```
 get_saturation() 
```

Gets the hue-saturation-brightness (HSB) saturation value for this [Color](/imaging/python-net/aspose.imaging/color/) structure.

**Returns**

| Type | Description |
| :- | :- |
| float | The saturation of this [Color](/imaging/python-net/aspose.imaging/color/). The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated. |


### Method: to_argb() {#to_argb__10}


```
 to_argb() 
```

Gets the 32-bit ARGB value of this [Color](/imaging/python-net/aspose.imaging/color/) structure.

**Returns**

| Type | Description |
| :- | :- |
| int | The 32-bit ARGB value of this [Color](/imaging/python-net/aspose.imaging/color/). |


### Method: to_cmyk(pixel)  [static] {#to_cmyk_pixel_11}


```
 to_cmyk(pixel) 
```

The conversion from Color to CMYKColor.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixel | [Color](/imaging/python-net/aspose.imaging/color/) |  |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk(pixels)  [static] {#to_cmyk_pixels_12}


```
 to_cmyk(pixels) 
```

The conversion from Color to CMYKColor.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixels | [Color[]](/imaging/python-net/aspose.imaging/color/) | The pixels of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk_color(pixel)  [static] {#to_cmyk_color_pixel_13}


```
 to_cmyk_color(pixel) 
```

The conversion from Color to CMYKColor.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk(pixel)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixel | [Color](/imaging/python-net/aspose.imaging/color/) | The pixel of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/). |


### Method: to_cmyk_color_with_def_icc(pixel)  [static] {#to_cmyk_color_with_def_icc_pixel_14}


```
 to_cmyk_color_with_def_icc(pixel) 
```

The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixel)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixel | [Color](/imaging/python-net/aspose.imaging/color/) | The pixel of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/). |


### Method: to_cmyk_color_with_icc(pixel, rgb_icc_stream, cmyk_icc_stream)  [static] {#to_cmyk_color_with_icc_pixel_rgb_icc_stream_cmyk_icc_stream_15}


```
 to_cmyk_color_with_icc(pixel, rgb_icc_stream, cmyk_icc_stream) 
```

The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixel, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixel | [Color](/imaging/python-net/aspose.imaging/color/) | The pixel of Color type in RGB format. |
| rgb_icc_stream | _io.BufferedRandom | The stream containing icc rgb profile. |
| cmyk_icc_stream | _io.BufferedRandom | The stream containing icc cmyk profile. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk_colors(pixels)  [static] {#to_cmyk_colors_pixels_16}


```
 to_cmyk_colors(pixels) 
```

The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixels | [Color[]](/imaging/python-net/aspose.imaging/color/) | The pixels of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk_colors_with_def_icc(pixels)  [static] {#to_cmyk_colors_with_def_icc_pixels_17}


```
 to_cmyk_colors_with_def_icc(pixels) 
```

The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixels | [Color[]](/imaging/python-net/aspose.imaging/color/) | The pixels of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk_colors_with_icc(pixels, rgb_icc_stream, cmyk_icc_stream)  [static] {#to_cmyk_colors_with_icc_pixels_rgb_icc_stream_cmyk_icc_stream_18}


```
 to_cmyk_colors_with_icc(pixels, rgb_icc_stream, cmyk_icc_stream) 
```

The conversion from Color to CMYKColor using icc conversion.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixels | [Color[]](/imaging/python-net/aspose.imaging/color/) | The pixels of Color type in RGB format. |
| rgb_icc_stream | _io.BufferedRandom | The stream containing icc rgb profile. |
| cmyk_icc_stream | _io.BufferedRandom | The stream containing icc cmyk profile. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk_icc(pixel)  [static] {#to_cmyk_icc_pixel_19}


```
 to_cmyk_icc(pixel) 
```

The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixel)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixel | [Color](/imaging/python-net/aspose.imaging/color/) | The pixel of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/). |


### Method: to_cmyk_icc(pixel, rgb_icc_stream, cmyk_icc_stream)  [static] {#to_cmyk_icc_pixel_rgb_icc_stream_cmyk_icc_stream_20}


```
 to_cmyk_icc(pixel, rgb_icc_stream, cmyk_icc_stream) 
```

The conversion from Color to CMYKColor using icc conversion.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixel | [Color](/imaging/python-net/aspose.imaging/color/) |  |
| rgb_icc_stream | _io.BufferedRandom | The stream containing icc rgb profile. |
| cmyk_icc_stream | _io.BufferedRandom | The stream containing icc cmyk profile. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/). |


### Method: to_cmyk_icc(pixels)  [static] {#to_cmyk_icc_pixels_21}


```
 to_cmyk_icc(pixels) 
```

The conversion from Color to CMYKColor using icc conversion with default profiles.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixels | [Color[]](/imaging/python-net/aspose.imaging/color/) | The pixels of Color type in RGB format. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor](/imaging/python-net/aspose.imaging/cmykcolor/)[]. |


### Method: to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)  [static] {#to_cmyk_icc_pixels_rgb_icc_stream_cmyk_icc_stream_22}


```
 to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream) 
```

The conversion from Color to CMYKColor using icc conversion.<br/>            This method is deprecated. Please use more effective [CmykColorHelper.to_cmyk_icc(pixels, rgb_icc_stream, cmyk_icc_stream)](/imaging/python-net/aspose.imaging/cmykcolorhelper/).

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| pixels | [Color[]](/imaging/python-net/aspose.imaging/color/) | The pixels of Color type in RGB format. |
| rgb_icc_stream | _io.BufferedRandom | The stream containing icc rgb profile. |
| cmyk_icc_stream | _io.BufferedRandom | The stream containing icc cmyk profile. |

**Returns**

| Type | Description |
| :- | :- |
| [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/) | The [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor/). |


### Method: to_known_color() {#to_known_color__23}


```
 to_known_color() 
```

Gets the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) value of this [Color](/imaging/python-net/aspose.imaging/color/) structure.

**Returns**

| Type | Description |
| :- | :- |
| [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) | An element of the [KnownColor](/imaging/python-net/aspose.imaging/knowncolor/) enumeration, if the [Color](/imaging/python-net/aspose.imaging/color/) is created from a predefined color by using either the [Color.from_name(name)](/imaging/python-net/aspose.imaging/color/) method or the [Color.from_known_color(color)](/imaging/python-net/aspose.imaging/color/) method; otherwise, 0. |


