[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.PaletteColor

Struct PaletteColor

Namespace
GrapeCity.Documents.Imaging.Windows
Assembly
GcDocs.Imaging.Windows.dll

Represents a color in 32bppBGRA format.

public struct PaletteColor : IEquatable<PaletteColor>, IFormattable
Implements
System.IEquatable<T><PaletteColor>
System.IFormattable
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

PaletteColor(ColorF)

Initializes a new instance of the PaletteColor struct.

public PaletteColor(ColorF value)

Parameters

value ColorF

The source C1.Util.DX.ColorF.

PaletteColor(Color)

Initializes a new instance of the PaletteColor struct.

public PaletteColor(Color color)

Parameters

color System.Drawing.Color

The System.Drawing.Color value.

PaletteColor(int, int, int, int)

Initializes a new instance of the PaletteColor struct.

public PaletteColor(int red, int green, int blue, int alpha = 255)

Parameters

red int

The red component of the color.

green int

The green component of the color.

blue int

The blue component of the color.

alpha int

The alpha component of the color.

PaletteColor(uint)

Initializes a new instance of the PaletteColor struct.

public PaletteColor(uint argb)

Parameters

argb uint

A packed unsigned integer containing all four color components in 32bppBGRA format.

Fields

AliceBlue

AliceBlue color.

public static readonly PaletteColor AliceBlue

Field Value

PaletteColor

AntiqueWhite

AntiqueWhite color.

public static readonly PaletteColor AntiqueWhite

Field Value

PaletteColor

Aqua

Aqua color.

public static readonly PaletteColor Aqua

Field Value

PaletteColor

Aquamarine

Aquamarine color.

public static readonly PaletteColor Aquamarine

Field Value

PaletteColor

Azure

Azure color.

public static readonly PaletteColor Azure

Field Value

PaletteColor

Beige

Beige color.

public static readonly PaletteColor Beige

Field Value

PaletteColor

Bisque

Bisque color.

public static readonly PaletteColor Bisque

Field Value

PaletteColor

Black

Black color.

public static readonly PaletteColor Black

Field Value

PaletteColor

BlanchedAlmond

BlanchedAlmond color.

public static readonly PaletteColor BlanchedAlmond

Field Value

PaletteColor

Blue

Blue color.

public static readonly PaletteColor Blue

Field Value

PaletteColor

BlueViolet

BlueViolet color.

public static readonly PaletteColor BlueViolet

Field Value

PaletteColor

Brown

Brown color.

public static readonly PaletteColor Brown

Field Value

PaletteColor

BurlyWood

BurlyWood color.

public static readonly PaletteColor BurlyWood

Field Value

PaletteColor

CadetBlue

CadetBlue color.

public static readonly PaletteColor CadetBlue

Field Value

PaletteColor

Chartreuse

Chartreuse color.

public static readonly PaletteColor Chartreuse

Field Value

PaletteColor

Chocolate

Chocolate color.

public static readonly PaletteColor Chocolate

Field Value

PaletteColor

Coral

Coral color.

public static readonly PaletteColor Coral

Field Value

PaletteColor

CornflowerBlue

CornflowerBlue color.

public static readonly PaletteColor CornflowerBlue

Field Value

PaletteColor

Cornsilk

Cornsilk color.

public static readonly PaletteColor Cornsilk

Field Value

PaletteColor

Crimson

Crimson color.

public static readonly PaletteColor Crimson

Field Value

PaletteColor

Cyan

Cyan color.

public static readonly PaletteColor Cyan

Field Value

PaletteColor

DarkBlue

DarkBlue color.

public static readonly PaletteColor DarkBlue

Field Value

PaletteColor

DarkCyan

DarkCyan color.

public static readonly PaletteColor DarkCyan

Field Value

PaletteColor

DarkGoldenrod

DarkGoldenrod color.

public static readonly PaletteColor DarkGoldenrod

Field Value

PaletteColor

DarkGray

DarkGray color.

public static readonly PaletteColor DarkGray

Field Value

PaletteColor

DarkGreen

DarkGreen color.

public static readonly PaletteColor DarkGreen

Field Value

PaletteColor

DarkKhaki

DarkKhaki color.

public static readonly PaletteColor DarkKhaki

Field Value

PaletteColor

DarkMagenta

DarkMagenta color.

public static readonly PaletteColor DarkMagenta

Field Value

PaletteColor

DarkOliveGreen

DarkOliveGreen color.

public static readonly PaletteColor DarkOliveGreen

Field Value

PaletteColor

DarkOrange

DarkOrange color.

public static readonly PaletteColor DarkOrange

Field Value

PaletteColor

DarkOrchid

DarkOrchid color.

public static readonly PaletteColor DarkOrchid

Field Value

PaletteColor

DarkRed

DarkRed color.

public static readonly PaletteColor DarkRed

Field Value

PaletteColor

DarkSalmon

DarkSalmon color.

public static readonly PaletteColor DarkSalmon

Field Value

PaletteColor

DarkSeaGreen

DarkSeaGreen color.

public static readonly PaletteColor DarkSeaGreen

Field Value

PaletteColor

DarkSlateBlue

DarkSlateBlue color.

public static readonly PaletteColor DarkSlateBlue

Field Value

PaletteColor

DarkSlateGray

DarkSlateGray color.

public static readonly PaletteColor DarkSlateGray

Field Value

PaletteColor

DarkTurquoise

DarkTurquoise color.

public static readonly PaletteColor DarkTurquoise

Field Value

PaletteColor

DarkViolet

DarkViolet color.

public static readonly PaletteColor DarkViolet

Field Value

PaletteColor

DeepPink

DeepPink color.

public static readonly PaletteColor DeepPink

Field Value

PaletteColor

DeepSkyBlue

DeepSkyBlue color.

public static readonly PaletteColor DeepSkyBlue

Field Value

PaletteColor

DimGray

DimGray color.

public static readonly PaletteColor DimGray

Field Value

PaletteColor

DodgerBlue

DodgerBlue color.

public static readonly PaletteColor DodgerBlue

Field Value

PaletteColor

Empty

Empty color.

public static readonly PaletteColor Empty

Field Value

PaletteColor

Firebrick

Firebrick color.

public static readonly PaletteColor Firebrick

Field Value

PaletteColor

FloralWhite

FloralWhite color.

public static readonly PaletteColor FloralWhite

Field Value

PaletteColor

ForestGreen

ForestGreen color.

public static readonly PaletteColor ForestGreen

Field Value

PaletteColor

Fuchsia

Fuchsia color.

public static readonly PaletteColor Fuchsia

Field Value

PaletteColor

Gainsboro

Gainsboro color.

public static readonly PaletteColor Gainsboro

Field Value

PaletteColor

GhostWhite

GhostWhite color.

public static readonly PaletteColor GhostWhite

Field Value

PaletteColor

Gold

Gold color.

public static readonly PaletteColor Gold

Field Value

PaletteColor

Goldenrod

Goldenrod color.

public static readonly PaletteColor Goldenrod

Field Value

PaletteColor

Gray

Gray color.

public static readonly PaletteColor Gray

Field Value

PaletteColor

Green

Green color.

public static readonly PaletteColor Green

Field Value

PaletteColor

GreenYellow

GreenYellow color.

public static readonly PaletteColor GreenYellow

Field Value

PaletteColor

Honeydew

Honeydew color.

public static readonly PaletteColor Honeydew

Field Value

PaletteColor

HotPink

HotPink color.

public static readonly PaletteColor HotPink

Field Value

PaletteColor

IndianRed

IndianRed color.

public static readonly PaletteColor IndianRed

Field Value

PaletteColor

Indigo

Indigo color.

public static readonly PaletteColor Indigo

Field Value

PaletteColor

Ivory

Ivory color.

public static readonly PaletteColor Ivory

Field Value

PaletteColor

Khaki

Khaki color.

public static readonly PaletteColor Khaki

Field Value

PaletteColor

Lavender

Lavender color.

public static readonly PaletteColor Lavender

Field Value

PaletteColor

LavenderBlush

LavenderBlush color.

public static readonly PaletteColor LavenderBlush

Field Value

PaletteColor

LawnGreen

LawnGreen color.

public static readonly PaletteColor LawnGreen

Field Value

PaletteColor

LemonChiffon

LemonChiffon color.

public static readonly PaletteColor LemonChiffon

Field Value

PaletteColor

LightBlue

LightBlue color.

public static readonly PaletteColor LightBlue

Field Value

PaletteColor

LightCoral

LightCoral color.

public static readonly PaletteColor LightCoral

Field Value

PaletteColor

LightCyan

LightCyan color.

public static readonly PaletteColor LightCyan

Field Value

PaletteColor

LightGoldenrodYellow

LightGoldenrodYellow color.

public static readonly PaletteColor LightGoldenrodYellow

Field Value

PaletteColor

LightGray

LightGray color.

public static readonly PaletteColor LightGray

Field Value

PaletteColor

LightGreen

LightGreen color.

public static readonly PaletteColor LightGreen

Field Value

PaletteColor

LightPink

LightPink color.

public static readonly PaletteColor LightPink

Field Value

PaletteColor

LightSalmon

LightSalmon color.

public static readonly PaletteColor LightSalmon

Field Value

PaletteColor

LightSeaGreen

LightSeaGreen color.

public static readonly PaletteColor LightSeaGreen

Field Value

PaletteColor

LightSkyBlue

LightSkyBlue color.

public static readonly PaletteColor LightSkyBlue

Field Value

PaletteColor

LightSlateGray

LightSlateGray color.

public static readonly PaletteColor LightSlateGray

Field Value

PaletteColor

LightSteelBlue

LightSteelBlue color.

public static readonly PaletteColor LightSteelBlue

Field Value

PaletteColor

LightYellow

LightYellow color.

public static readonly PaletteColor LightYellow

Field Value

PaletteColor

Lime

Lime color.

public static readonly PaletteColor Lime

Field Value

PaletteColor

LimeGreen

LimeGreen color.

public static readonly PaletteColor LimeGreen

Field Value

PaletteColor

Linen

Linen color.

public static readonly PaletteColor Linen

Field Value

PaletteColor

Magenta

Magenta color.

public static readonly PaletteColor Magenta

Field Value

PaletteColor

Maroon

Maroon color.

public static readonly PaletteColor Maroon

Field Value

PaletteColor

MediumAquamarine

MediumAquamarine color.

public static readonly PaletteColor MediumAquamarine

Field Value

PaletteColor

MediumBlue

MediumBlue color.

public static readonly PaletteColor MediumBlue

Field Value

PaletteColor

MediumOrchid

MediumOrchid color.

public static readonly PaletteColor MediumOrchid

Field Value

PaletteColor

MediumPurple

MediumPurple color.

public static readonly PaletteColor MediumPurple

Field Value

PaletteColor

MediumSeaGreen

MediumSeaGreen color.

public static readonly PaletteColor MediumSeaGreen

Field Value

PaletteColor

MediumSlateBlue

MediumSlateBlue color.

public static readonly PaletteColor MediumSlateBlue

Field Value

PaletteColor

MediumSpringGreen

MediumSpringGreen color.

public static readonly PaletteColor MediumSpringGreen

Field Value

PaletteColor

MediumTurquoise

MediumTurquoise color.

public static readonly PaletteColor MediumTurquoise

Field Value

PaletteColor

MediumVioletRed

MediumVioletRed color.

public static readonly PaletteColor MediumVioletRed

Field Value

PaletteColor

MidnightBlue

MidnightBlue color.

public static readonly PaletteColor MidnightBlue

Field Value

PaletteColor

MintCream

MintCream color.

public static readonly PaletteColor MintCream

Field Value

PaletteColor

MistyRose

MistyRose color.

public static readonly PaletteColor MistyRose

Field Value

PaletteColor

Moccasin

Moccasin color.

public static readonly PaletteColor Moccasin

Field Value

PaletteColor

NavajoWhite

NavajoWhite color.

public static readonly PaletteColor NavajoWhite

Field Value

PaletteColor

Navy

Navy color.

public static readonly PaletteColor Navy

Field Value

PaletteColor

OldLace

OldLace color.

public static readonly PaletteColor OldLace

Field Value

PaletteColor

Olive

Olive color.

public static readonly PaletteColor Olive

Field Value

PaletteColor

OliveDrab

OliveDrab color.

public static readonly PaletteColor OliveDrab

Field Value

PaletteColor

Orange

Orange color.

public static readonly PaletteColor Orange

Field Value

PaletteColor

OrangeRed

OrangeRed color.

public static readonly PaletteColor OrangeRed

Field Value

PaletteColor

Orchid

Orchid color.

public static readonly PaletteColor Orchid

Field Value

PaletteColor

PaleGoldenrod

PaleGoldenrod color.

public static readonly PaletteColor PaleGoldenrod

Field Value

PaletteColor

PaleGreen

PaleGreen color.

public static readonly PaletteColor PaleGreen

Field Value

PaletteColor

PaleTurquoise

PaleTurquoise color.

public static readonly PaletteColor PaleTurquoise

Field Value

PaletteColor

PaleVioletRed

PaleVioletRed color.

public static readonly PaletteColor PaleVioletRed

Field Value

PaletteColor

PapayaWhip

PapayaWhip color.

public static readonly PaletteColor PapayaWhip

Field Value

PaletteColor

PeachPuff

PeachPuff color.

public static readonly PaletteColor PeachPuff

Field Value

PaletteColor

Peru

Peru color.

public static readonly PaletteColor Peru

Field Value

PaletteColor

Pink

Pink color.

public static readonly PaletteColor Pink

Field Value

PaletteColor

Plum

Plum color.

public static readonly PaletteColor Plum

Field Value

PaletteColor

PowderBlue

PowderBlue color.

public static readonly PaletteColor PowderBlue

Field Value

PaletteColor

Purple

Purple color.

public static readonly PaletteColor Purple

Field Value

PaletteColor

Red

Red color.

public static readonly PaletteColor Red

Field Value

PaletteColor

RosyBrown

RosyBrown color.

public static readonly PaletteColor RosyBrown

Field Value

PaletteColor

RoyalBlue

RoyalBlue color.

public static readonly PaletteColor RoyalBlue

Field Value

PaletteColor

SaddleBrown

SaddleBrown color.

public static readonly PaletteColor SaddleBrown

Field Value

PaletteColor

Salmon

Salmon color.

public static readonly PaletteColor Salmon

Field Value

PaletteColor

SandyBrown

SandyBrown color.

public static readonly PaletteColor SandyBrown

Field Value

PaletteColor

SeaGreen

SeaGreen color.

public static readonly PaletteColor SeaGreen

Field Value

PaletteColor

SeaShell

SeaShell color.

public static readonly PaletteColor SeaShell

Field Value

PaletteColor

Sienna

Sienna color.

public static readonly PaletteColor Sienna

Field Value

PaletteColor

Silver

Silver color.

public static readonly PaletteColor Silver

Field Value

PaletteColor

SkyBlue

SkyBlue color.

public static readonly PaletteColor SkyBlue

Field Value

PaletteColor

SlateBlue

SlateBlue color.

public static readonly PaletteColor SlateBlue

Field Value

PaletteColor

SlateGray

SlateGray color.

public static readonly PaletteColor SlateGray

Field Value

PaletteColor

Snow

Snow color.

public static readonly PaletteColor Snow

Field Value

PaletteColor

SpringGreen

SpringGreen color.

public static readonly PaletteColor SpringGreen

Field Value

PaletteColor

SteelBlue

SteelBlue color.

public static readonly PaletteColor SteelBlue

Field Value

PaletteColor

Tan

Tan color.

public static readonly PaletteColor Tan

Field Value

PaletteColor

Teal

Teal color.

public static readonly PaletteColor Teal

Field Value

PaletteColor

Thistle

Thistle color.

public static readonly PaletteColor Thistle

Field Value

PaletteColor

Tomato

Tomato color.

public static readonly PaletteColor Tomato

Field Value

PaletteColor

Transparent

Transparent color.

public static readonly PaletteColor Transparent

Field Value

PaletteColor

Turquoise

Turquoise color.

public static readonly PaletteColor Turquoise

Field Value

PaletteColor

Value

The packed color value.

public int Value

Field Value

int

Violet

Violet color.

public static readonly PaletteColor Violet

Field Value

PaletteColor

Wheat

Wheat color.

public static readonly PaletteColor Wheat

Field Value

PaletteColor

White

White color.

public static readonly PaletteColor White

Field Value

PaletteColor

WhiteSmoke

WhiteSmoke color.

public static readonly PaletteColor WhiteSmoke

Field Value

PaletteColor

Yellow

Yellow color.

public static readonly PaletteColor Yellow

Field Value

PaletteColor

YellowGreen

YellowGreen color.

public static readonly PaletteColor YellowGreen

Field Value

PaletteColor

Properties

A

The alpha component of the color.

public int A { get; set; }

Property Value

int

B

The blue component of the color.

public int B { get; set; }

Property Value

int

G

The green component of the color.

public int G { get; set; }

Property Value

int

IsEmpty

Gets whether this ColorF structure is uninitialized.

public bool IsEmpty { get; }

Property Value

bool

IsTransparent

Gets a value indicating if we can skip drawing with this color.

public bool IsTransparent { get; }

Property Value

bool

R

The red component of the color.

public int R { get; set; }

Property Value

int

Methods

Equals(PaletteColor)

Determines whether the specified PaletteColor is equal to this instance.

public bool Equals(PaletteColor other)

Parameters

other PaletteColor

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object value)

Parameters

value object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToColor()

Converts the color into a System.Drawing.Color.

public Color ToColor()

Returns

System.Drawing.Color

ToColorF()

Converts the color into a C1.Util.DX.ColorF.

public ColorF ToColorF()

Returns

ColorF

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

ToString(IFormatProvider)

Returns a string that represents this instance.

public string ToString(IFormatProvider formatProvider)

Parameters

formatProvider System.IFormatProvider

The format provider.

Returns

string

A string that represents this instance.

ToString(string, IFormatProvider)

Returns a string that represents this instance.

public string ToString(string format, IFormatProvider formatProvider)

Parameters

format string

The format.

formatProvider System.IFormatProvider

The format provider.

Returns

string

A string that represents this instance.

ToString(string)

Returns a string that represents this instance.

public string ToString(string format)

Parameters

format string

The format.

Returns

string

A string that represents this instance.

Operators

operator ==(PaletteColor, PaletteColor)

Determines if the specified values are equal.

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

Parameters

left PaletteColor
right PaletteColor

Returns

bool

explicit operator PaletteColor(ColorF)

Performs an explicit conversion from ColorF to PaletteColor.

public static explicit operator PaletteColor(ColorF color)

Parameters

color ColorF

Returns

PaletteColor

explicit operator ColorF(PaletteColor)

Performs an explicit conversion from PaletteColor to C1.Util.DX.ColorF.

public static explicit operator ColorF(PaletteColor value)

Parameters

value PaletteColor

Returns

ColorF

explicit operator Color(PaletteColor)

Performs an explicit conversion from PaletteColor to System.Drawing.Color.

public static explicit operator Color(PaletteColor value)

Parameters

value PaletteColor

Returns

System.Drawing.Color

explicit operator PaletteColor(Color)

Performs an explicit conversion from System.Drawing.Color to PaletteColor.

public static explicit operator PaletteColor(Color color)

Parameters

color System.Drawing.Color

Returns

PaletteColor

operator !=(PaletteColor, PaletteColor)

Determines if the specified values are not equal.

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

Parameters

left PaletteColor
right PaletteColor

Returns

bool