Color

Overview

Color is a class in Aspose.PDF FOSS for .NET.

Represents a color value used in PDF documents.

This class provides 14 methods for working with Color objects in .NET programs. Available methods include: Color, Equals, FromArgb, FromCmyk, FromGray, FromRgb, GetHashCode, Parse, ToRgb, ToRgbArray, ToString. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: A, AByte, AliceBlue, AntiqueWhite, Aqua, Aquamarine, and 146 more.

Properties

NameTypeAccessDescription
RbyteReadRGB components in 0–255 range.
GbyteReadGets the g.
BbyteReadGets the b.
ABytebyteReadByte-typed alpha (0–255).
AdoubleReadAlpha in 0..1 range.
IsEmptyboolReadWhether this color has been set (non-empty).
Datadouble[]?ReadThe color space data (for advanced use).
PatternColorSpaceAspose.Pdf.Drawing.PatternColorSpace?Read/WriteThe pattern color space (for advanced use).
ColorSpaceAspose.Pdf.ColorSpaceReadTop-level Aspose.Pdf.ColorSpace selector.
ColorTypeColorTypeRead/WriteInternal colour-space marker (ColorType.Rgb / Cmyk / Gray).
TransparentColorReadGets the transparent.
AliceBlueColorReadGets the alice blue.
AntiqueWhiteColorReadGets the antique white.
AquaColorReadGets the aqua.
AquamarineColorReadGets the aquamarine.
AzureColorReadGets the azure.
BeigeColorReadGets the beige.
BisqueColorReadGets the bisque.
BlackColorReadGets the black.
BlanchedAlmondColorReadGets the blanched almond.
BlueColorReadGets the blue.
BlueVioletColorReadGets the blue violet.
BrownColorReadGets the brown.
BurlyWoodColorReadGets the burly wood.
CadetBlueColorReadGets the cadet blue.
ChartreuseColorReadGets the chartreuse.
ChocolateColorReadGets the chocolate.
CoralColorReadGets the coral.
CornflowerBlueColorReadGets the cornflower blue.
CornsilkColorReadGets the cornsilk.
CrimsonColorReadGets the crimson.
CyanColorReadGets the cyan.
DarkBlueColorReadGets the dark blue.
DarkCyanColorReadGets the dark cyan.
DarkGoldenrodColorReadGets the dark goldenrod.
DarkGrayColorReadGets the dark gray.
DarkGreenColorReadGets the dark green.
DarkKhakiColorReadGets the dark khaki.
DarkMagentaColorReadGets the dark magenta.
DarkOliveGreenColorReadGets the dark olive green.
DarkOrangeColorReadGets the dark orange.
DarkOrchidColorReadGets the dark orchid.
DarkRedColorReadGets the dark red.
DarkSalmonColorReadGets the dark salmon.
DarkSeaGreenColorReadGets the dark sea green.
DarkSlateBlueColorReadGets the dark slate blue.
DarkSlateGrayColorReadGets the dark slate gray.
DarkTurquoiseColorReadGets the dark turquoise.
DarkVioletColorReadGets the dark violet.
DeepPinkColorReadGets the deep pink.
DeepSkyBlueColorReadGets the deep sky blue.
DimGrayColorReadGets the dim gray.
DodgerBlueColorReadGets the dodger blue.
FirebrickColorReadGets the firebrick.
FloralWhiteColorReadGets the floral white.
ForestGreenColorReadGets the forest green.
FuchsiaColorReadGets the fuchsia.
GainsboroColorReadGets the gainsboro.
GhostWhiteColorReadGets the ghost white.
GoldColorReadGets the gold.
GoldenrodColorReadGets the goldenrod.
GrayColorReadGets the gray.
GreenColorReadGets the green.
GreenYellowColorReadGets the green yellow.
HoneydewColorReadGets the honeydew.
HotPinkColorReadGets the hot pink.
IndianRedColorReadGets the indian red.
IndigoColorReadGets the indigo.
IvoryColorReadGets the ivory.
KhakiColorReadGets the khaki.
LavenderColorReadGets the lavender.
LavenderBlushColorReadGets the lavender blush.
LawnGreenColorReadGets the lawn green.
LemonChiffonColorReadGets the lemon chiffon.
LightBlueColorReadGets the light blue.
LightCoralColorReadGets the light coral.
LightCyanColorReadGets the light cyan.
LightGoldenrodYellowColorReadGets the light goldenrod yellow.
LightGrayColorReadGets the light gray.
LightGreenColorReadGets the light green.
LightPinkColorReadGets the light pink.
LightSalmonColorReadGets the light salmon.
LightSeaGreenColorReadGets the light sea green.
LightSkyBlueColorReadGets the light sky blue.
LightSlateGrayColorReadGets the light slate gray.
LightSteelBlueColorReadGets the light steel blue.
LightYellowColorReadGets the light yellow.
LimeColorReadGets the lime.
LimeGreenColorReadGets the lime green.
LinenColorReadGets the linen.
MagentaColorReadGets the magenta.
MaroonColorReadGets the maroon.
MediumAquamarineColorReadGets the medium aquamarine.
MediumBlueColorReadGets the medium blue.
MediumOrchidColorReadGets the medium orchid.
MediumPurpleColorReadGets the medium purple.
MediumSeaGreenColorReadGets the medium sea green.
MediumSlateBlueColorReadGets the medium slate blue.
MediumSpringGreenColorReadGets the medium spring green.
MediumTurquoiseColorReadGets the medium turquoise.
MediumVioletRedColorReadGets the medium violet red.
MidnightBlueColorReadGets the midnight blue.
MintCreamColorReadGets the mint cream.
MistyRoseColorReadGets the misty rose.
MoccasinColorReadGets the moccasin.
NavajoWhiteColorReadGets the navajo white.
NavyColorReadGets the navy.
OldLaceColorReadGets the old lace.
OliveColorReadGets the olive.
OliveDrabColorReadGets the olive drab.
OrangeColorReadGets the orange.
OrangeRedColorReadGets the orange red.
OrchidColorReadGets the orchid.
PaleGoldenrodColorReadGets the pale goldenrod.
PaleGreenColorReadGets the pale green.
PaleTurquoiseColorReadGets the pale turquoise.
PaleVioletRedColorReadGets the pale violet red.
PapayaWhipColorReadGets the papaya whip.
PeachPuffColorReadGets the peach puff.
PeruColorReadGets the peru.
PinkColorReadGets the pink.
PlumColorReadGets the plum.
PowderBlueColorReadGets the powder blue.
PurpleColorReadGets the purple.
RedColorReadGets the red.
RosyBrownColorReadGets the rosy brown.
RoyalBlueColorReadGets the royal blue.
SaddleBrownColorReadGets the saddle brown.
SalmonColorReadGets the salmon.
SandyBrownColorReadGets the sandy brown.
SeaGreenColorReadGets the sea green.
SeaShellColorReadGets the sea shell.
SiennaColorReadGets the sienna.
SilverColorReadGets the silver.
SkyBlueColorReadGets the sky blue.
SlateBlueColorReadGets the slate blue.
SlateGrayColorReadGets the slate gray.
SnowColorReadGets the snow.
SpringGreenColorReadGets the spring green.
SteelBlueColorReadGets the steel blue.
TanColorReadGets the tan.
TealColorReadGets the teal.
ThistleColorReadGets the thistle.
TomatoColorReadGets the tomato.
TurquoiseColorReadGets the turquoise.
VioletColorReadGets the violet.
WheatColorReadGets the wheat.
WhiteColorReadGets the white.
WhiteSmokeColorReadGets the white smoke.
YellowColorReadGets the yellow.
YellowGreenColorReadGets the yellow green.
EmptyColorReadGets the empty.

Methods

SignatureDescription
Color()Creates an empty (transparent black) color.
Equals(obj: object?)Calls Equals on this Color instance.
GetHashCode()Calls GetHashCode on this Color instance.
FromArgb(r: int, g: int, b: int)Calls FromArgb on this Color instance.
FromArgb(a: int, r: int, g: int, b: int)
FromRgb(r: int, g: int, b: int)Calls FromRgb on this Color instance.
FromRgb(r: double, g: double, b: double)
FromRgb(color: System.Drawing.Color)
FromCmyk(c: double, m: double, y: double, k: double)Calls FromCmyk on this Color instance.
FromGray(g: double)Calls FromGray on this Color instance.
Parse(value: string)Calls Parse on this Color instance.
ToRgbArray()Convert to PDF color array [r, g, b] in 0–1 range.
ToRgb()Calls ToRgb on this Color instance.
ToString()Calls ToString on this Color instance.

See Also