Struct Color

Struct Color

Nom dels espais: Aspose.Imaging Assemblea: Aspose.Imaging.dll (25.4.0)

El color del píxel.

public struct Color

Membres heretats

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

A

Obté el valor del component alfa d’aquesta estructura Aspose.Imaging.Color.

public byte A { get; }

Valor de la propietat

byte

AliceBlue

Obté un color sistemàticament definit.

public static Color AliceBlue { get; }

Valor de la propietat

Color

AntiqueWhite

Obté un color sistemàticament definit.

public static Color AntiqueWhite { get; }

Valor de la propietat

Color

Aqua

Obté un color sistemàticament definit.

public static Color Aqua { get; }

Valor de la propietat

Color

Aquamarine

Obté un color sistemàticament definit.

public static Color Aquamarine { get; }

Valor de la propietat

Color

Azure

Obté un color sistemàticament definit.

public static Color Azure { get; }

Valor de la propietat

Color

B

Obté el valor del component blau d’aquesta estructura Aspose.Imaging.Color.

public byte B { get; }

Valor de la propietat

byte

Beige

Obté un color sistemàticament definit.

public static Color Beige { get; }

Valor de la propietat

Color

Bisque

Obté un color sistemàticament definit.

public static Color Bisque { get; }

Valor de la propietat

Color

Black

Obté un color sistemàticament definit.

public static Color Black { get; }

Valor de la propietat

Color

BlanchedAlmond

Obté un color sistemàticament definit.

public static Color BlanchedAlmond { get; }

Valor de la propietat

Color

Blue

Obté un color sistemàticament definit.

public static Color Blue { get; }

Valor de la propietat

Color

BlueViolet

Obté un color sistemàticament definit.

public static Color BlueViolet { get; }

Valor de la propietat

Color

Brown

Obté un color sistemàticament definit.

public static Color Brown { get; }

Valor de la propietat

Color

BurlyWood

Obté un color sistemàticament definit.

public static Color BurlyWood { get; }

Valor de la propietat

Color

CadetBlue

Obté un color sistemàticament definit.

public static Color CadetBlue { get; }

Valor de la propietat

Color

Chartreuse

Obté un color sistemàticament definit.

public static Color Chartreuse { get; }

Valor de la propietat

Color

Chocolate

Obté un color sistemàticament definit.

public static Color Chocolate { get; }

Valor de la propietat

Color

Coral

Obté un color sistemàticament definit.

public static Color Coral { get; }

Valor de la propietat

Color

CornflowerBlue

Obté un color sistemàticament definit.

public static Color CornflowerBlue { get; }

Valor de la propietat

Color

Cornsilk

Obté un color sistemàticament definit.

public static Color Cornsilk { get; }

Valor de la propietat

Color

Crimson

Obté un color sistemàticament definit.

public static Color Crimson { get; }

Valor de la propietat

Color

Cyan

Obté un color sistemàticament definit.

public static Color Cyan { get; }

Valor de la propietat

Color

DarkBlue

Obté un color sistemàticament definit.

public static Color DarkBlue { get; }

Valor de la propietat

Color

DarkCyan

Obté un color sistemàticament definit.

public static Color DarkCyan { get; }

Valor de la propietat

Color

DarkGoldenrod

Obté un color sistemàticament definit.

public static Color DarkGoldenrod { get; }

Valor de la propietat

Color

DarkGray

Obté un color sistemàticament definit.

public static Color DarkGray { get; }

Valor de la propietat

Color

DarkGreen

Obté un color sistemàticament definit.

public static Color DarkGreen { get; }

Valor de la propietat

Color

DarkKhaki

Obté un color sistemàticament definit.

public static Color DarkKhaki { get; }

Valor de la propietat

Color

DarkMagenta

Obté un color sistemàticament definit.

public static Color DarkMagenta { get; }

Valor de la propietat

Color

DarkOliveGreen

Obté un color sistemàticament definit.

public static Color DarkOliveGreen { get; }

Valor de la propietat

Color

DarkOrange

Obté un color sistemàticament definit.

public static Color DarkOrange { get; }

Valor de la propietat

Color

DarkOrchid

Obté un color sistemàticament definit.

public static Color DarkOrchid { get; }

Valor de la propietat

Color

DarkRed

Obté un color sistemàticament definit.

public static Color DarkRed { get; }

Valor de la propietat

Color

DarkSalmon

Obté un color sistemàticament definit.

public static Color DarkSalmon { get; }

Valor de la propietat

Color

DarkSeaGreen

Obté un color sistemàticament definit.

public static Color DarkSeaGreen { get; }

Valor de la propietat

Color

DarkSlateBlue

Obté un color sistemàticament definit.

public static Color DarkSlateBlue { get; }

Valor de la propietat

Color

DarkSlateGray

Obté un color sistemàticament definit.

public static Color DarkSlateGray { get; }

Valor de la propietat

Color

DarkTurquoise

Obté un color sistemàticament definit.

public static Color DarkTurquoise { get; }

Valor de la propietat

Color

DarkViolet

Obté un color sistemàticament definit.

public static Color DarkViolet { get; }

Valor de la propietat

Color

DeepPink

Obté un color sistemàticament definit.

public static Color DeepPink { get; }

Valor de la propietat

Color

DeepSkyBlue

Obté un color sistemàticament definit.

public static Color DeepSkyBlue { get; }

Valor de la propietat

Color

DimGray

Obté un color sistemàticament definit.

public static Color DimGray { get; }

Valor de la propietat

Color

DodgerBlue

Obté un color sistemàticament definit.

public static Color DodgerBlue { get; }

Valor de la propietat

Color

Empty

Obté un buit Aspose.Imaging.Color.

public static Color Empty { get; }

Valor de la propietat

Color

Firebrick

Obté un color sistemàticament definit.

public static Color Firebrick { get; }

Valor de la propietat

Color

FloralWhite

Obté un color sistemàticament definit.

public static Color FloralWhite { get; }

Valor de la propietat

Color

ForestGreen

Obté un color sistemàticament definit.

public static Color ForestGreen { get; }

Valor de la propietat

Color

Fuchsia

Obté un color sistemàticament definit.

public static Color Fuchsia { get; }

Valor de la propietat

Color

G

Obté el valor del component verd d’aquesta estructura Aspose.Imaging.Color.

public byte G { get; }

Valor de la propietat

byte

Gainsboro

Obté un color sistemàticament definit.

public static Color Gainsboro { get; }

Valor de la propietat

Color

GhostWhite

Obté un color sistemàticament definit.

public static Color GhostWhite { get; }

Valor de la propietat

Color

Gold

Obté un color sistemàticament definit.

public static Color Gold { get; }

Valor de la propietat

Color

Goldenrod

Obté un color sistemàticament definit.

public static Color Goldenrod { get; }

Valor de la propietat

Color

Gray

Obté un color sistemàticament definit.

public static Color Gray { get; }

Valor de la propietat

Color

Green

Obté un color sistemàticament definit.

public static Color Green { get; }

Valor de la propietat

Color

GreenYellow

Obté un color sistemàticament definit.

public static Color GreenYellow { get; }

Valor de la propietat

Color

Honeydew

Obté un color sistemàticament definit.

public static Color Honeydew { get; }

Valor de la propietat

Color

HotPink

Obté un color sistemàticament definit.

public static Color HotPink { get; }

Valor de la propietat

Color

IndianRed

Obté un color sistemàticament definit.

public static Color IndianRed { get; }

Valor de la propietat

Color

Indigo

Obté un color sistemàticament definit.

public static Color Indigo { get; }

Valor de la propietat

Color

IsEmpty

Obté un valor que indica si aquesta estructura de color Aspose.Imaging és desinitialitzada.

public bool IsEmpty { get; }

Valor de la propietat

bool

IsKnownColor

Obté un valor que indiqui si aquesta estructura de color és un color predefinit. Els colors predeterminats són representats pels elements de l’enumeració Aspose.Imaging.KnownColor.

public bool IsKnownColor { get; }

Valor de la propietat

bool

IsNamedColor

Obté un valor que indica si aquesta estructura de color Aspose.Imaging.Color és un color anomenat o un membre de l’enumeració de la colora __ WL18_.Known.

public bool IsNamedColor { get; }

Valor de la propietat

bool

Ivory

Obté un color sistemàticament definit.

public static Color Ivory { get; }

Valor de la propietat

Color

Khaki

Obté un color sistemàticament definit.

public static Color Khaki { get; }

Valor de la propietat

Color

Lavender

Obté un color sistemàticament definit.

public static Color Lavender { get; }

Valor de la propietat

Color

LavenderBlush

Obté un color sistemàticament definit.

public static Color LavenderBlush { get; }

Valor de la propietat

Color

LawnGreen

Obté un color sistemàticament definit.

public static Color LawnGreen { get; }

Valor de la propietat

Color

LemonChiffon

Obté un color sistemàticament definit.

public static Color LemonChiffon { get; }

Valor de la propietat

Color

LightBlue

Obté un color sistemàticament definit.

public static Color LightBlue { get; }

Valor de la propietat

Color

LightCoral

Obté un color sistemàticament definit.

public static Color LightCoral { get; }

Valor de la propietat

Color

LightCyan

Obté un color sistemàticament definit.

public static Color LightCyan { get; }

Valor de la propietat

Color

LightGoldenrodYellow

Obté un color sistemàticament definit.

public static Color LightGoldenrodYellow { get; }

Valor de la propietat

Color

LightGray

Obté un color sistemàticament definit.

public static Color LightGray { get; }

Valor de la propietat

Color

LightGreen

Obté un color sistemàticament definit.

public static Color LightGreen { get; }

Valor de la propietat

Color

LightPink

Obté un color sistemàticament definit.

public static Color LightPink { get; }

Valor de la propietat

Color

LightSalmon

Obté un color sistemàticament definit.

public static Color LightSalmon { get; }

Valor de la propietat

Color

LightSeaGreen

Obté un color sistemàticament definit.

public static Color LightSeaGreen { get; }

Valor de la propietat

Color

LightSkyBlue

Obté un color sistemàticament definit.

public static Color LightSkyBlue { get; }

Valor de la propietat

Color

LightSlateGray

Obté un color sistemàticament definit.

public static Color LightSlateGray { get; }

Valor de la propietat

Color

LightSteelBlue

Obté un color sistemàticament definit.

public static Color LightSteelBlue { get; }

Valor de la propietat

Color

LightYellow

Obté un color sistemàticament definit.

public static Color LightYellow { get; }

Valor de la propietat

Color

Lime

Obté un color sistemàticament definit.

public static Color Lime { get; }

Valor de la propietat

Color

LimeGreen

Obté un color sistemàticament definit.

public static Color LimeGreen { get; }

Valor de la propietat

Color

Linen

Obté un color sistemàticament definit.

public static Color Linen { get; }

Valor de la propietat

Color

Magenta

Obté un color sistemàticament definit.

public static Color Magenta { get; }

Valor de la propietat

Color

Maroon

Obté un color sistemàticament definit.

public static Color Maroon { get; }

Valor de la propietat

Color

MediumAquamarine

Obté un color sistemàticament definit.

public static Color MediumAquamarine { get; }

Valor de la propietat

Color

MediumBlue

Obté un color sistemàticament definit.

public static Color MediumBlue { get; }

Valor de la propietat

Color

MediumOrchid

Obté un color sistemàticament definit.

public static Color MediumOrchid { get; }

Valor de la propietat

Color

MediumPurple

Obté un color sistemàticament definit.

public static Color MediumPurple { get; }

Valor de la propietat

Color

MediumSeaGreen

Obté un color sistemàticament definit.

public static Color MediumSeaGreen { get; }

Valor de la propietat

Color

MediumSlateBlue

Obté un color sistemàticament definit.

public static Color MediumSlateBlue { get; }

Valor de la propietat

Color

MediumSpringGreen

Obté un color sistemàticament definit.

public static Color MediumSpringGreen { get; }

Valor de la propietat

Color

MediumTurquoise

Obté un color sistemàticament definit.

public static Color MediumTurquoise { get; }

Valor de la propietat

Color

MediumVioletRed

Obté un color sistemàticament definit.

public static Color MediumVioletRed { get; }

Valor de la propietat

Color

MidnightBlue

Obté un color sistemàticament definit.

public static Color MidnightBlue { get; }

Valor de la propietat

Color

MintCream

Obté un color sistemàticament definit.

public static Color MintCream { get; }

Valor de la propietat

Color

MistyRose

Obté un color sistemàticament definit.

public static Color MistyRose { get; }

Valor de la propietat

Color

Moccasin

Obté un color sistemàticament definit.

public static Color Moccasin { get; }

Valor de la propietat

Color

Name

Obtenir el nom d’aquest Aspose.Imaging.Color.

public string Name { get; }

Valor de la propietat

string

NavajoWhite

Obté un color sistemàticament definit.

public static Color NavajoWhite { get; }

Valor de la propietat

Color

Navy

Obté un color sistemàticament definit.

public static Color Navy { get; }

Valor de la propietat

Color

OldLace

Obté un color sistemàticament definit.

public static Color OldLace { get; }

Valor de la propietat

Color

Olive

Obté un color sistemàticament definit.

public static Color Olive { get; }

Valor de la propietat

Color

OliveDrab

Obté un color sistemàticament definit.

public static Color OliveDrab { get; }

Valor de la propietat

Color

Orange

Obté un color sistemàticament definit.

public static Color Orange { get; }

Valor de la propietat

Color

OrangeRed

Obté un color sistemàticament definit.

public static Color OrangeRed { get; }

Valor de la propietat

Color

Orchid

Obté un color sistemàticament definit.

public static Color Orchid { get; }

Valor de la propietat

Color

PaleGoldenrod

Obté un color sistemàticament definit.

public static Color PaleGoldenrod { get; }

Valor de la propietat

Color

PaleGreen

Obté un color sistemàticament definit.

public static Color PaleGreen { get; }

Valor de la propietat

Color

PaleTurquoise

Obté un color sistemàticament definit.

public static Color PaleTurquoise { get; }

Valor de la propietat

Color

PaleVioletRed

Obté un color sistemàticament definit.

public static Color PaleVioletRed { get; }

Valor de la propietat

Color

PapayaWhip

Obté un color sistemàticament definit.

public static Color PapayaWhip { get; }

Valor de la propietat

Color

PeachPuff

Obté un color sistemàticament definit.

public static Color PeachPuff { get; }

Valor de la propietat

Color

Peru

Obté un color sistemàticament definit.

public static Color Peru { get; }

Valor de la propietat

Color

Pink

Obté un color sistemàticament definit.

public static Color Pink { get; }

Valor de la propietat

Color

Plum

Obté un color sistemàticament definit.

public static Color Plum { get; }

Valor de la propietat

Color

PowderBlue

Obté un color sistemàticament definit.

public static Color PowderBlue { get; }

Valor de la propietat

Color

Purple

Obté un color sistemàticament definit.

public static Color Purple { get; }

Valor de la propietat

Color

R

Obté el valor de component vermell d’aquesta estructura Aspose.Imaging.Color.

public byte R { get; }

Valor de la propietat

byte

Red

Obté un color sistemàticament definit.

public static Color Red { get; }

Valor de la propietat

Color

RosyBrown

Obté un color sistemàticament definit.

public static Color RosyBrown { get; }

Valor de la propietat

Color

RoyalBlue

Obté un color sistemàticament definit.

public static Color RoyalBlue { get; }

Valor de la propietat

Color

SaddleBrown

Obté un color sistemàticament definit.

public static Color SaddleBrown { get; }

Valor de la propietat

Color

Salmon

Obté un color sistemàticament definit.

public static Color Salmon { get; }

Valor de la propietat

Color

SandyBrown

Obté un color sistemàticament definit.

public static Color SandyBrown { get; }

Valor de la propietat

Color

SeaGreen

Obté un color sistemàticament definit.

public static Color SeaGreen { get; }

Valor de la propietat

Color

SeaShell

Obté un color sistemàticament definit.

public static Color SeaShell { get; }

Valor de la propietat

Color

Sienna

Obté un color sistemàticament definit.

public static Color Sienna { get; }

Valor de la propietat

Color

Silver

Obté un color sistemàticament definit.

public static Color Silver { get; }

Valor de la propietat

Color

SkyBlue

Obté un color sistemàticament definit.

public static Color SkyBlue { get; }

Valor de la propietat

Color

SlateBlue

Obté un color sistemàticament definit.

public static Color SlateBlue { get; }

Valor de la propietat

Color

SlateGray

Obté un color sistemàticament definit.

public static Color SlateGray { get; }

Valor de la propietat

Color

Snow

Obté un color sistemàticament definit.

public static Color Snow { get; }

Valor de la propietat

Color

SpringGreen

Obté un color sistemàticament definit.

public static Color SpringGreen { get; }

Valor de la propietat

Color

SteelBlue

Obté un color sistemàticament definit.

public static Color SteelBlue { get; }

Valor de la propietat

Color

Tan

Obté un color sistemàticament definit.

public static Color Tan { get; }

Valor de la propietat

Color

Teal

Obté un color sistemàticament definit.

public static Color Teal { get; }

Valor de la propietat

Color

Thistle

Obté un color sistemàticament definit.

public static Color Thistle { get; }

Valor de la propietat

Color

Tomato

Obté un color sistemàticament definit.

public static Color Tomato { get; }

Valor de la propietat

Color

Transparent

Obté un color sistemàticament definit.

public static Color Transparent { get; }

Valor de la propietat

Color

Turquoise

Obté un color sistemàticament definit.

public static Color Turquoise { get; }

Valor de la propietat

Color

Violet

Obté un color sistemàticament definit.

public static Color Violet { get; }

Valor de la propietat

Color

Wheat

Obté un color sistemàticament definit.

public static Color Wheat { get; }

Valor de la propietat

Color

White

Obté un color sistemàticament definit.

public static Color White { get; }

Valor de la propietat

Color

WhiteSmoke

Obté un color sistemàticament definit.

public static Color WhiteSmoke { get; }

Valor de la propietat

Color

Yellow

Obté un color sistemàticament definit.

public static Color Yellow { get; }

Valor de la propietat

Color

YellowGreen

Obté un color sistemàticament definit.

public static Color YellowGreen { get; }

Valor de la propietat

Color

Methods

Equals(Objecte)

Prova si l’objecte especificat és una estructura de color Aspose.Imaging.Color i és equivalent a aquesta estructura.

public override bool Equals(object obj)

Parameters

obj object

l’objecte a provar.

Returns

bool

És veritat si obj’ és una estructura de color Aspose.Imaging.Equivalent a aquesta estructura.Color; d’altra banda, falsa.

FromArgb(Int)

Crea una estructura Aspose.Imaging.Color a partir d’un valor ARGB de 32 bits.

public static Color FromArgb(int argb)

Parameters

argb int

Un valor que especifica el valor ARGB de 32 bits.

Returns

Color

La Aspose.Imaging.Color estructura que aquest mètode crea.

FromArgb(Int, int, int, int)

Crea una estructura de color des dels quatre valors dels components ARGB (alfa, vermell, verd i blau). tot i que aquest mètode permet que es passi un valor de 32 bits per a cada component, el valor d’aquests elements és limitat a 8 bit.

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

Parameters

alpha int

El component alfa. Els valors són de 0 a 255.

red int

El component vermell. Els valors són de 0 a 255.

green int

El component verd. Els valors són de 0 a 255.

blue int

El component blau. els valors són de 0 a 255.

Returns

Color

El Aspose.Imaging.Color que aquest mètode crea.

Exceptions

ArgumentOutOfRangeException

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

FromArgb(El color, el color)

Crea una estructura Aspose.Imaging.Color a partir de l’estructura especificada __ WL16_.Color, però amb el nou valor alfa especificat. Tot i que aquest mètode permet que es passi un valor de 32 bits per al valor Alpha, el valor és limitat a 8 bit.

public static Color FromArgb(int alpha, Color baseColor)

Parameters

alpha int

El valor alfa per al nou Aspose.Imaging.Color. Els valors són de 0 a 255.

baseColor Color

El Aspose.Imaging.Color des del qual es pot crear el nou Wl17. Color.

Returns

Color

El Aspose.Imaging.Color que aquest mètode crea.

Exceptions

ArgumentOutOfRangeException

alpha’ is less than 0 or greater than 255.

FromArgb(Int, int, int)

Crea una estructura de color des dels valors de colors de 8 bits especificats (rojo, verd i blau). El valor alfa és implicitament 255 (completament opac). Tot i que aquest mètode permet que es passi un valor de 32 bit per a cada component del color, el valor d’aquests components és limitat a 8.

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

Parameters

red int

El valor de component vermell per al nou Aspose.Imaging.Color. Els valors són de 0 a 255.

green int

El valor de component verd per al nou Aspose.Imaging.Color. Els valors són de 0 a 255.

blue int

El valor de component blau per al nou Aspose.Imaging.Color. Els valors són de 0 a 255.

Returns

Color

El Aspose.Imaging.Color que aquest mètode crea.

Exceptions

ArgumentOutOfRangeException

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

FromKnownColor(KnownColor)

Crea una estructura Aspose.Imaging.Color del color predefinit especificat.

public static Color FromKnownColor(KnownColor color)

Parameters

color KnownColor

Un element de l’enumeració Aspose.Imaging.KnownColor.

Returns

Color

El Aspose.Imaging.Color que aquest mètode crea.

FromName(Tàrrega)

Crea una estructura Aspose.Imaging.Color des del nom especificat d’un color predefinit.

public static Color FromName(string name)

Parameters

name string

Els noms vàlids són els mateixos que els noms dels elements de l’enumeració Aspose.Imaging.KnownColor.

Returns

Color

El Aspose.Imaging.Color que aquest mètode crea.

GetBrightness()

Obté el valor de brillantor Hue-saturation-brightness (HSB) per a aquesta estructura Aspose.Imaging.Color.

public float GetBrightness()

Returns

float

La brillantor d’aquest Aspose.Imaging.Color.La brillància varia de 0.0 a 1.0, on 0.0 representa negre i 1.0 representa blanc.

GetHashCode()

Retorna un codi hash per a aquesta estructura Aspose.Imaging.Color.

public override int GetHashCode()

Returns

int

Un valor integral que especifica el codi de hash per a aquest Aspose.Imaging.Color.

GetHue()

Obté el valor hue-saturation-brightness (HSB), en graus, per a aquesta estructura Aspose.Imaging.Color.

public float GetHue()

Returns

float

L’hue, en graus, d’aquest Aspose.Imaging.Color.La hue es mesura en grats, que varien de 0.0 a 360.0, a l’espai de color HSB.

GetSaturation()

Obté el valor de saturació Hue-saturation-brightness (HSB) per a aquesta estructura Aspose.Imaging.Color.

public float GetSaturation()

Returns

float

La saturació d’aquest Aspose.Imaging.Color.La saturada varia de 0.0 a 1.0, on 0.0 és gris i 1.0 és el més saturat.

ToArgb()

Obté el valor ARGB de 32 bits d’aquesta estructura Aspose.Imaging.Color.

public int ToArgb()

Returns

int

El valor ARGB de 32 bits d’aquest Aspose.Imaging.Color.

ToCmyk(Color[])

La conversió de color a CMYKColor.Si us plau, utilitzeu més eficaç Aspose.Imaging.CmykColorHelper.ToMyk(_W L17.Colors[]).

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

Parameters

pixels Color []

Els píxels del tipus de color en format RGB.

Returns

CmykColor []

El Aspose.Imaging.CmykColor[].

ToCmyk(Color)

La conversió de color a CMYKColor.Si us plau, utilitzeu més eficaç Aspose.Imaging.CmykColorHelper.ToMyk(_W L17.Colors).

public static CmykColor ToCmyk(Color pixel)

Parameters

pixel Color

El píxel del tipus de color en format RGB.

Returns

CmykColor

El Aspose.Imaging.CmykColor

ToCmykIcc(Color)

La conversió de Color a CMYKColor utilitzant la convertió icc amb perfils estàndard.Si us plau, utilitzeu més eficaç Aspose.Imaging.CmykColorHelper.ToMykIcc(_W L17.color).

[Obsolete]
public static CmykColor ToCmykIcc(Color pixel)

Parameters

pixel Color

El píxel del tipus de color en format RGB.

Returns

CmykColor

El Aspose.Imaging.CmykColor

ToCmykIcc(Color[])

La conversió de Color a CMYKColor utilitzant la convertió icc amb perfils estàndard.Si us plau, utilitzeu més eficaç Aspose.Imaging.CmykColorHelper.ToMykIcc(_W L17.Colors[]).

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

Parameters

pixels Color []

Els píxels del tipus de color en format RGB.

Returns

CmykColor []

El Aspose.Imaging.CmykColor[].

ToCmykIcc(Color[]El corrent, el corrent)

La conversió de color a CMYKColor utilitzant la convertida icc.Si us plau, utilitzeu més eficaç Aspose.Imaging.CmykColorHelper.ToMykIcc(_W L17.Colors[],System.IO.Stream,Systems.io. Stream).

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

Parameters

pixels Color []

Els píxels del tipus de color en format RGB.

rgbIccStream Stream

El flux que conté el perfil icc rgb.

cmykIccStream Stream

El flux que conté el perfil icc cmyk.

Returns

CmykColor []

El Aspose.Imaging.CmykColor[].

ToCmykIcc(El color, el corrent i el flux)

La conversió de Color a CMYKColor utilitzant la convertió icc amb perfils estàndard.Si us plau, utilitzeu més eficaç Aspose.Imaging.CmykColorHelper.ToMykIcc(_W L17.Colors,System.IO.Stream,system.io.stream).

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

Parameters

pixel Color

El píxel del tipus de color en format RGB.

rgbIccStream Stream

El flux que conté el perfil icc rgb.

cmykIccStream Stream

El flux que conté el perfil icc cmyk.

Returns

CmykColor

El Aspose.Imaging.CmykColor[].

ToKnownColor()

Obtén el valor Aspose.Imaging.KnownColor d’aquesta estructura de color.

public KnownColor ToKnownColor()

Returns

KnownColor

Un element de l’enumeració del Aspose.Imaging.KnownColor, si el W L17.Color es crea d’un color predefinit utilitzant el mètode de la __ WL 17_ .COLOR.FromName(System.String) o el mitjà de La wL 17. .Colors.

ToString()

Converteix aquesta estructura Aspose.Imaging.Color en una cadena de lectura humana.

public override string ToString()

Returns

string

Una fila que és el nom d’aquest Aspose.Imaging.Color, si el Wl17.Color es crea d’un color predefinit mitjançant l’ús de la metodologia de __ WL16__ Color.FromName(System.String) o la mètode de _ www.color.from KnownColore(__W L17-Colors); en cas contrari, una fula que consisteix en els noms dels components ARGB i els seus valors.

Operators

Operador =(color, color)

Prova si dues estructures de color especificades Aspose.Imaging són equivalents.

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

Parameters

left Color

El Aspose.Imaging.Color que es troba a l’esquerra del operador d’igualtat.

right Color

El Aspose.Imaging.Color que és al dret de l’operador d’igualtat.

Returns

bool

És veritat si les dues estructures de color són iguals; en cas contrari, falses.

Operador !=(color, color)

Prova si dues estructures de color especificades Aspose.Imaging són diferents.

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

Parameters

left Color

El Aspose.Imaging.Color que es troba a l’esquerra del operador de la desigualtat.

right Color

El Aspose.Imaging.Color que és al dret de l’operador de la desigualtat.

Returns

bool

És veritat si les dues estructures de color són diferents; d’altra banda, falses.

 Català