Table of Contents

Struct Color

Namespace
Aspose.Imaging
Assembly
Aspose.Imaging.dll

The color of the pixel.

public struct Color
Inherited Members

Properties

A

Gets the alpha component value of this Color structure.

public byte A { get; }

Property Value

byte

The alpha component value of this Color.

AliceBlue

Gets a system-defined color.

public static Color AliceBlue { get; }

Property Value

Color

A Color representing a system-defined color.

AntiqueWhite

Gets a system-defined color.

public static Color AntiqueWhite { get; }

Property Value

Color

A Color representing a system-defined color.

Aqua

Gets a system-defined color.

public static Color Aqua { get; }

Property Value

Color

A Color representing a system-defined color.

Aquamarine

Gets a system-defined color.

public static Color Aquamarine { get; }

Property Value

Color

A Color representing a system-defined color.

Azure

Gets a system-defined color.

public static Color Azure { get; }

Property Value

Color

A Color representing a system-defined color.

B

Gets the blue component value of this Color structure.

public byte B { get; }

Property Value

byte

The blue component value of this Color.

Beige

Gets a system-defined color.

public static Color Beige { get; }

Property Value

Color

A Color representing a system-defined color.

Bisque

Gets a system-defined color.

public static Color Bisque { get; }

Property Value

Color

A Color representing a system-defined color.

Black

Gets a system-defined color.

public static Color Black { get; }

Property Value

Color

A Color representing a system-defined color.

BlanchedAlmond

Gets a system-defined color.

public static Color BlanchedAlmond { get; }

Property Value

Color

A Color representing a system-defined color.

Blue

Gets a system-defined color.

public static Color Blue { get; }

Property Value

Color

A Color representing a system-defined color.

BlueViolet

Gets a system-defined color.

public static Color BlueViolet { get; }

Property Value

Color

A Color representing a system-defined color.

Brown

Gets a system-defined color.

public static Color Brown { get; }

Property Value

Color

A Color representing a system-defined color.

BurlyWood

Gets a system-defined color.

public static Color BurlyWood { get; }

Property Value

Color

A Color representing a system-defined color.

CadetBlue

Gets a system-defined color.

public static Color CadetBlue { get; }

Property Value

Color

A Color representing a system-defined color.

Chartreuse

Gets a system-defined color.

public static Color Chartreuse { get; }

Property Value

Color

A Color representing a system-defined color.

Chocolate

Gets a system-defined color.

public static Color Chocolate { get; }

Property Value

Color

A Color representing a system-defined color.

Coral

Gets a system-defined color.

public static Color Coral { get; }

Property Value

Color

A Color representing a system-defined color.

CornflowerBlue

Gets a system-defined color.

public static Color CornflowerBlue { get; }

Property Value

Color

A Color representing a system-defined color.

Cornsilk

Gets a system-defined color.

public static Color Cornsilk { get; }

Property Value

Color

A Color representing a system-defined color.

Crimson

Gets a system-defined color.

public static Color Crimson { get; }

Property Value

Color

A Color representing a system-defined color.

Cyan

Gets a system-defined color.

public static Color Cyan { get; }

Property Value

Color

A Color representing a system-defined color.

DarkBlue

Gets a system-defined color.

public static Color DarkBlue { get; }

Property Value

Color

A Color representing a system-defined color.

DarkCyan

Gets a system-defined color.

public static Color DarkCyan { get; }

Property Value

Color

A Color representing a system-defined color.

DarkGoldenrod

Gets a system-defined color.

public static Color DarkGoldenrod { get; }

Property Value

Color

A Color representing a system-defined color.

DarkGray

Gets a system-defined color.

public static Color DarkGray { get; }

Property Value

Color

A Color representing a system-defined color.

DarkGreen

Gets a system-defined color.

public static Color DarkGreen { get; }

Property Value

Color

A Color representing a system-defined color.

DarkKhaki

Gets a system-defined color.

public static Color DarkKhaki { get; }

Property Value

Color

A Color representing a system-defined color.

DarkMagenta

Gets a system-defined color.

public static Color DarkMagenta { get; }

Property Value

Color

A Color representing a system-defined color.

DarkOliveGreen

Gets a system-defined color.

public static Color DarkOliveGreen { get; }

Property Value

Color

A Color representing a system-defined color.

DarkOrange

Gets a system-defined color.

public static Color DarkOrange { get; }

Property Value

Color

A Color representing a system-defined color.

DarkOrchid

Gets a system-defined color.

public static Color DarkOrchid { get; }

Property Value

Color

A Color representing a system-defined color.

DarkRed

Gets a system-defined color.

public static Color DarkRed { get; }

Property Value

Color

A Color representing a system-defined color.

DarkSalmon

Gets a system-defined color.

public static Color DarkSalmon { get; }

Property Value

Color

A Color representing a system-defined color.

DarkSeaGreen

Gets a system-defined color.

public static Color DarkSeaGreen { get; }

Property Value

Color

A Color representing a system-defined color.

DarkSlateBlue

Gets a system-defined color.

public static Color DarkSlateBlue { get; }

Property Value

Color

A Color representing a system-defined color.

DarkSlateGray

Gets a system-defined color.

public static Color DarkSlateGray { get; }

Property Value

Color

A Color representing a system-defined color.

DarkTurquoise

Gets a system-defined color.

public static Color DarkTurquoise { get; }

Property Value

Color

A Color representing a system-defined color.

DarkViolet

Gets a system-defined color.

public static Color DarkViolet { get; }

Property Value

Color

A Color representing a system-defined color.

DeepPink

Gets a system-defined color.

public static Color DeepPink { get; }

Property Value

Color

A Color representing a system-defined color.

DeepSkyBlue

Gets a system-defined color.

public static Color DeepSkyBlue { get; }

Property Value

Color

A Color representing a system-defined color.

DimGray

Gets a system-defined color.

public static Color DimGray { get; }

Property Value

Color

A Color representing a system-defined color.

DodgerBlue

Gets a system-defined color.

public static Color DodgerBlue { get; }

Property Value

Color

A Color representing a system-defined color.

Empty

Gets an empty Color.

public static Color Empty { get; }

Property Value

Color

The empty Color.

Firebrick

Gets a system-defined color.

public static Color Firebrick { get; }

Property Value

Color

A Color representing a system-defined color.

FloralWhite

Gets a system-defined color.

public static Color FloralWhite { get; }

Property Value

Color

A Color representing a system-defined color.

ForestGreen

Gets a system-defined color.

public static Color ForestGreen { get; }

Property Value

Color

A Color representing a system-defined color.

Fuchsia

Gets a system-defined color.

public static Color Fuchsia { get; }

Property Value

Color

A Color representing a system-defined color.

G

Gets the green component value of this Color structure.

public byte G { get; }

Property Value

byte

The green component value of this Color.

Gainsboro

Gets a system-defined color.

public static Color Gainsboro { get; }

Property Value

Color

A Color representing a system-defined color.

GhostWhite

Gets a system-defined color.

public static Color GhostWhite { get; }

Property Value

Color

A Color representing a system-defined color.

Gold

Gets a system-defined color.

public static Color Gold { get; }

Property Value

Color

A Color representing a system-defined color.

Goldenrod

Gets a system-defined color.

public static Color Goldenrod { get; }

Property Value

Color

A Color representing a system-defined color.

Gray

Gets a system-defined color.

public static Color Gray { get; }

Property Value

Color

A Color structure representing a system-defined color.

Green

Gets a system-defined color.

public static Color Green { get; }

Property Value

Color

A Color representing a system-defined color.

GreenYellow

Gets a system-defined color.

public static Color GreenYellow { get; }

Property Value

Color

A Color representing a system-defined color.

Honeydew

Gets a system-defined color.

public static Color Honeydew { get; }

Property Value

Color

A Color representing a system-defined color.

HotPink

Gets a system-defined color.

public static Color HotPink { get; }

Property Value

Color

A Color representing a system-defined color.

IndianRed

Gets a system-defined color.

public static Color IndianRed { get; }

Property Value

Color

A Color representing a system-defined color.

Indigo

Gets a system-defined color.

public static Color Indigo { get; }

Property Value

Color

A Color representing a system-defined color.

IsEmpty

Gets a value indicating whether this Color structure is uninitialized.

public bool IsEmpty { get; }

Property Value

bool

This property returns true if this color is uninitialized; otherwise, false.

IsKnownColor

Gets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration.

public bool IsKnownColor { get; }

Property Value

bool

True if this Color was created from a predefined color by using either the FromName(string) method or the FromKnownColor(KnownColor) method; otherwise, false.

IsNamedColor

Gets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration.

public bool IsNamedColor { get; }

Property Value

bool

True if this Color was created by using either the FromName(string) method or the FromKnownColor(KnownColor) method; otherwise, false.

Ivory

Gets a system-defined color.

public static Color Ivory { get; }

Property Value

Color

A Color representing a system-defined color.

Khaki

Gets a system-defined color.

public static Color Khaki { get; }

Property Value

Color

A Color representing a system-defined color.

Lavender

Gets a system-defined color.

public static Color Lavender { get; }

Property Value

Color

A Color representing a system-defined color.

LavenderBlush

Gets a system-defined color.

public static Color LavenderBlush { get; }

Property Value

Color

A Color representing a system-defined color.

LawnGreen

Gets a system-defined color.

public static Color LawnGreen { get; }

Property Value

Color

A Color representing a system-defined color.

LemonChiffon

Gets a system-defined color.

public static Color LemonChiffon { get; }

Property Value

Color

A Color representing a system-defined color.

LightBlue

Gets a system-defined color.

public static Color LightBlue { get; }

Property Value

Color

A Color representing a system-defined color.

LightCoral

Gets a system-defined color.

public static Color LightCoral { get; }

Property Value

Color

A Color representing a system-defined color.

LightCyan

Gets a system-defined color.

public static Color LightCyan { get; }

Property Value

Color

A Color representing a system-defined color.

LightGoldenrodYellow

Gets a system-defined color.

public static Color LightGoldenrodYellow { get; }

Property Value

Color

A Color representing a system-defined color.

LightGray

Gets a system-defined color.

public static Color LightGray { get; }

Property Value

Color

A Color representing a system-defined color.

LightGreen

Gets a system-defined color.

public static Color LightGreen { get; }

Property Value

Color

A Color representing a system-defined color.

LightPink

Gets a system-defined color.

public static Color LightPink { get; }

Property Value

Color

A Color representing a system-defined color.

LightSalmon

Gets a system-defined color.

public static Color LightSalmon { get; }

Property Value

Color

A Color representing a system-defined color.

LightSeaGreen

Gets a system-defined color.

public static Color LightSeaGreen { get; }

Property Value

Color

A Color representing a system-defined color.

LightSkyBlue

Gets a system-defined color.

public static Color LightSkyBlue { get; }

Property Value

Color

A Color representing a system-defined color.

LightSlateGray

Gets a system-defined color.

public static Color LightSlateGray { get; }

Property Value

Color

A Color representing a system-defined color.

LightSteelBlue

Gets a system-defined color.

public static Color LightSteelBlue { get; }

Property Value

Color

A Color representing a system-defined color.

LightYellow

Gets a system-defined color.

public static Color LightYellow { get; }

Property Value

Color

A Color representing a system-defined color.

Lime

Gets a system-defined color.

public static Color Lime { get; }

Property Value

Color

A Color representing a system-defined color.

LimeGreen

Gets a system-defined color.

public static Color LimeGreen { get; }

Property Value

Color

A Color representing a system-defined color.

Linen

Gets a system-defined color.

public static Color Linen { get; }

Property Value

Color

A Color representing a system-defined color.

Magenta

Gets a system-defined color.

public static Color Magenta { get; }

Property Value

Color

A Color representing a system-defined color.

Maroon

Gets a system-defined color.

public static Color Maroon { get; }

Property Value

Color

A Color representing a system-defined color.

MediumAquamarine

Gets a system-defined color.

public static Color MediumAquamarine { get; }

Property Value

Color

A Color representing a system-defined color.

MediumBlue

Gets a system-defined color.

public static Color MediumBlue { get; }

Property Value

Color

A Color representing a system-defined color.

MediumOrchid

Gets a system-defined color.

public static Color MediumOrchid { get; }

Property Value

Color

A Color representing a system-defined color.

MediumPurple

Gets a system-defined color.

public static Color MediumPurple { get; }

Property Value

Color

A Color representing a system-defined color.

MediumSeaGreen

Gets a system-defined color.

public static Color MediumSeaGreen { get; }

Property Value

Color

A Color representing a system-defined color.

MediumSlateBlue

Gets a system-defined color.

public static Color MediumSlateBlue { get; }

Property Value

Color

A Color representing a system-defined color.

MediumSpringGreen

Gets a system-defined color.

public static Color MediumSpringGreen { get; }

Property Value

Color

A Color representing a system-defined color.

MediumTurquoise

Gets a system-defined color.

public static Color MediumTurquoise { get; }

Property Value

Color

A Color representing a system-defined color.

MediumVioletRed

Gets a system-defined color.

public static Color MediumVioletRed { get; }

Property Value

Color

A Color representing a system-defined color.

MidnightBlue

Gets a system-defined color.

public static Color MidnightBlue { get; }

Property Value

Color

A Color representing a system-defined color.

MintCream

Gets a system-defined color.

public static Color MintCream { get; }

Property Value

Color

A Color representing a system-defined color.

MistyRose

Gets a system-defined color.

public static Color MistyRose { get; }

Property Value

Color

A Color representing a system-defined color.

Moccasin

Gets a system-defined color.

public static Color Moccasin { get; }

Property Value

Color

A Color representing a system-defined color.

Name

Gets the name of this Color.

public string Name { get; }

Property Value

string

The name of this Color.

NavajoWhite

Gets a system-defined color.

public static Color NavajoWhite { get; }

Property Value

Color

A Color representing a system-defined color.

Navy

Gets a system-defined color.

public static Color Navy { get; }

Property Value

Color

A Color representing a system-defined color.

OldLace

Gets a system-defined color.

public static Color OldLace { get; }

Property Value

Color

A Color representing a system-defined color.

Olive

Gets a system-defined color.

public static Color Olive { get; }

Property Value

Color

A Color representing a system-defined color.

OliveDrab

Gets a system-defined color.

public static Color OliveDrab { get; }

Property Value

Color

A Color representing a system-defined color.

Orange

Gets a system-defined color.

public static Color Orange { get; }

Property Value

Color

A Color representing a system-defined color.

OrangeRed

Gets a system-defined color.

public static Color OrangeRed { get; }

Property Value

Color

A Color representing a system-defined color.

Orchid

Gets a system-defined color.

public static Color Orchid { get; }

Property Value

Color

A Color representing a system-defined color.

PaleGoldenrod

Gets a system-defined color.

public static Color PaleGoldenrod { get; }

Property Value

Color

A Color representing a system-defined color.

PaleGreen

Gets a system-defined color.

public static Color PaleGreen { get; }

Property Value

Color

A Color representing a system-defined color.

PaleTurquoise

Gets a system-defined color.

public static Color PaleTurquoise { get; }

Property Value

Color

A Color representing a system-defined color.

PaleVioletRed

Gets a system-defined color.

public static Color PaleVioletRed { get; }

Property Value

Color

A Color representing a system-defined color.

PapayaWhip

Gets a system-defined color.

public static Color PapayaWhip { get; }

Property Value

Color

A Color representing a system-defined color.

PeachPuff

Gets a system-defined color.

public static Color PeachPuff { get; }

Property Value

Color

A Color representing a system-defined color.

Peru

Gets a system-defined color.

public static Color Peru { get; }

Property Value

Color

A Color representing a system-defined color.

Pink

Gets a system-defined color.

public static Color Pink { get; }

Property Value

Color

A Color representing a system-defined color.

Plum

Gets a system-defined color.

public static Color Plum { get; }

Property Value

Color

A Color representing a system-defined color.

PowderBlue

Gets a system-defined color.

public static Color PowderBlue { get; }

Property Value

Color

A Color representing a system-defined color.

Purple

Gets a system-defined color.

public static Color Purple { get; }

Property Value

Color

A Color representing a system-defined color.

R

Gets the red component value of this Color structure.

public byte R { get; }

Property Value

byte

The red component value of this Color.

Red

Gets a system-defined color.

public static Color Red { get; }

Property Value

Color

A Color representing a system-defined color.

RosyBrown

Gets a system-defined color.

public static Color RosyBrown { get; }

Property Value

Color

A Color representing a system-defined color.

RoyalBlue

Gets a system-defined color.

public static Color RoyalBlue { get; }

Property Value

Color

A Color representing a system-defined color.

SaddleBrown

Gets a system-defined color.

public static Color SaddleBrown { get; }

Property Value

Color

A Color representing a system-defined color.

Salmon

Gets a system-defined color.

public static Color Salmon { get; }

Property Value

Color

A Color representing a system-defined color.

SandyBrown

Gets a system-defined color.

public static Color SandyBrown { get; }

Property Value

Color

A Color representing a system-defined color.

SeaGreen

Gets a system-defined color.

public static Color SeaGreen { get; }

Property Value

Color

A Color representing a system-defined color.

SeaShell

Gets a system-defined color.

public static Color SeaShell { get; }

Property Value

Color

A Color representing a system-defined color.

Sienna

Gets a system-defined color.

public static Color Sienna { get; }

Property Value

Color

A Color representing a system-defined color.

Silver

Gets a system-defined color.

public static Color Silver { get; }

Property Value

Color

A Color representing a system-defined color.

SkyBlue

Gets a system-defined color.

public static Color SkyBlue { get; }

Property Value

Color

A Color representing a system-defined color.

SlateBlue

Gets a system-defined color.

public static Color SlateBlue { get; }

Property Value

Color

A Color representing a system-defined color.

SlateGray

Gets a system-defined color.

public static Color SlateGray { get; }

Property Value

Color

A Color representing a system-defined color.

Snow

Gets a system-defined color.

public static Color Snow { get; }

Property Value

Color

A Color representing a system-defined color.

SpringGreen

Gets a system-defined color.

public static Color SpringGreen { get; }

Property Value

Color

A Color representing a system-defined color.

SteelBlue

Gets a system-defined color.

public static Color SteelBlue { get; }

Property Value

Color

A Color representing a system-defined color.

Tan

Gets a system-defined color.

public static Color Tan { get; }

Property Value

Color

A Color representing a system-defined color.

Teal

Gets a system-defined color.

public static Color Teal { get; }

Property Value

Color

A Color representing a system-defined color.

Thistle

Gets a system-defined color.

public static Color Thistle { get; }

Property Value

Color

A Color representing a system-defined color.

Tomato

Gets a system-defined color.

public static Color Tomato { get; }

Property Value

Color

A Color representing a system-defined color.

Transparent

Gets a system-defined color.

public static Color Transparent { get; }

Property Value

Color

A Color representing a system-defined color.

Turquoise

Gets a system-defined color.

public static Color Turquoise { get; }

Property Value

Color

A Color representing a system-defined color.

Violet

Gets a system-defined color.

public static Color Violet { get; }

Property Value

Color

A Color representing a system-defined color.

Wheat

Gets a system-defined color.

public static Color Wheat { get; }

Property Value

Color

A Color representing a system-defined color.

White

Gets a system-defined color.

public static Color White { get; }

Property Value

Color

A Color representing a system-defined color.

WhiteSmoke

Gets a system-defined color.

public static Color WhiteSmoke { get; }

Property Value

Color

A Color representing a system-defined color.

Yellow

Gets a system-defined color.

public static Color Yellow { get; }

Property Value

Color

A Color representing a system-defined color.

YellowGreen

Gets a system-defined color.

public static Color YellowGreen { get; }

Property Value

Color

A Color representing a system-defined color.

Methods

Equals(object)

Tests whether the specified object is a Color structure and is equivalent to this Color structure.

public override bool Equals(object obj)

Parameters

obj object

The object to test.

Returns

bool

True if obj is a Color structure equivalent to this Color structure; otherwise, false.

FromArgb(int)

Creates a Color structure from a 32-bit ARGB value.

public static Color FromArgb(int argb)

Parameters

argb int

A value specifying the 32-bit ARGB value.

Returns

Color

The Color structure that this method creates.

FromArgb(int, Color)

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.

public static Color FromArgb(int alpha, Color baseColor)

Parameters

alpha int

The alpha value for the new Color. Valid values are 0 through 255.

baseColor Color

The Color from which to create the new Color.

Returns

Color

The Color that this method creates.

Exceptions

ArgumentOutOfRangeException

alpha is less than 0 or greater than 255.

FromArgb(int, int, int)

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.

public static Color FromArgb(int red, int green, int blue)

Parameters

red int

The red component value for the new Color. Valid values are 0 through 255.

green int

The green component value for the new Color. Valid values are 0 through 255.

blue int

The blue component value for the new Color. Valid values are 0 through 255.

Returns

Color

The Color that this method creates.

Exceptions

ArgumentOutOfRangeException

red, green, or blue is less than 0 or greater than 255.

FromArgb(int, int, int, int)

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.

public static Color FromArgb(int alpha, int red, int green, int blue)

Parameters

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

Color

The Color that this method creates.

Exceptions

ArgumentOutOfRangeException

alpha, red, green, or blue is less than 0 or greater than 255.

FromKnownColor(KnownColor)

Creates a Color structure from the specified predefined color.

public static Color FromKnownColor(KnownColor color)

Parameters

color KnownColor

An element of the KnownColor enumeration.

Returns

Color

The Color that this method creates.

FromName(string)

Creates a Color structure from the specified name of a predefined color.

public static Color FromName(string name)

Parameters

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 enumeration.

Returns

Color

The Color that this method creates.

GetBrightness()

Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.

public float GetBrightness()

Returns

float

The brightness of this Color. The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.

GetHashCode()

Returns a hash code for this Color structure.

public override int GetHashCode()

Returns

int

An integer value that specifies the hash code for this Color.

GetHue()

Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.

public float GetHue()

Returns

float

The hue, in degrees, of this Color. The hue is measured in degrees, ranging from 0.0 through 360.0, in HSB color space.

GetSaturation()

Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.

public float GetSaturation()

Returns

float

The saturation of this Color. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.

ToArgb()

Gets the 32-bit ARGB value of this Color structure.

public int ToArgb()

Returns

int

The 32-bit ARGB value of this Color.

ToCmyk(Color)

The conversion from Color to CMYKColor. This method is deprecated. Please use more effective ToCmyk(Color).

public static CmykColor ToCmyk(Color pixel)

Parameters

pixel Color

The pixel of Color type in RGB format.

Returns

CmykColor

The CmykColor.

ToCmyk(Color[])

The conversion from Color to CMYKColor. This method is deprecated. Please use more effective ToCmyk(Color[]).

[Obsolete]
public static CmykColor[] ToCmyk(Color[] pixels)

Parameters

pixels Color[]

The pixels of Color type in RGB format.

Returns

CmykColor

The CmykColor[].

ToCmykIcc(Color)

The conversion from Color to CMYKColor using icc conversion with default profiles. This method is deprecated. Please use more effective ToCmykIcc(Color).

[Obsolete]
public static CmykColor ToCmykIcc(Color pixel)

Parameters

pixel Color

The pixel of Color type in RGB format.

Returns

CmykColor

The CmykColor.

ToCmykIcc(Color, Stream, Stream)

The conversion from Color to CMYKColor using icc conversion with default profiles. This method is deprecated. Please use more effective ToCmykIcc(Color, Stream, Stream).

[Obsolete]
public static CmykColor ToCmykIcc(Color pixel, Stream rgbIccStream, Stream cmykIccStream)

Parameters

pixel Color

The pixel of Color type in RGB format.

rgbIccStream Stream

The stream containing icc rgb profile.

cmykIccStream Stream

The stream containing icc cmyk profile.

Returns

CmykColor

The CmykColor.

ToCmykIcc(Color[])

The conversion from Color to CMYKColor using icc conversion with default profiles. This method is deprecated. Please use more effective ToCmykIcc(Color[]).

[Obsolete]
public static CmykColor[] ToCmykIcc(Color[] pixels)

Parameters

pixels Color[]

The pixels of Color type in RGB format.

Returns

CmykColor

The CmykColor[].

ToCmykIcc(Color[], Stream, Stream)

The conversion from Color to CMYKColor using icc conversion. This method is deprecated. Please use more effective ToCmykIcc(Color[], Stream, Stream).

[Obsolete]
public static CmykColor[] ToCmykIcc(Color[] pixels, Stream rgbIccStream, Stream cmykIccStream)

Parameters

pixels Color[]

The pixels of Color type in RGB format.

rgbIccStream Stream

The stream containing icc rgb profile.

cmykIccStream Stream

The stream containing icc cmyk profile.

Returns

CmykColor

The CmykColor.

ToKnownColor()

Gets the KnownColor value of this Color structure.

public KnownColor ToKnownColor()

Returns

KnownColor

An element of the KnownColor enumeration, if the Color is created from a predefined color by using either the FromName(string) method or the FromKnownColor(KnownColor) method; otherwise, 0.

ToString()

Converts this Color structure to a human-readable string.

public override string ToString()

Returns

string

A string that is the name of this Color, if the Color is created from a predefined color by using either the FromName(string) method or the FromKnownColor(KnownColor) method; otherwise, a string that consists of the ARGB component names and their values.

Operators

operator ==(Color, Color)

Tests whether two specified Color structures are equivalent.

public static bool operator ==(Color left, Color right)

Parameters

left Color

The Color that is to the left of the equality operator.

right Color

The Color that is to the right of the equality operator.

Returns

bool

True if the two Color structures are equal; otherwise, false.

operator !=(Color, Color)

Tests whether two specified Color structures are different.

public static bool operator !=(Color left, Color right)

Parameters

left Color

The Color that is to the left of the inequality operator.

right Color

The Color that is to the right of the inequality operator.

Returns

bool

True if the two Color structures are different; otherwise, false.