Color

Overview

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

Color for drawing shapes.

This class provides 4 methods for working with Color objects in .NET programs. Available methods include: Color, FromRgb, Parse. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Aqua, B, Black, Blue, G, Gray, and 9 more.

Properties

NameTypeAccessDescription
RdoubleReadGets the r.
GdoubleReadGets the g.
BdoubleReadGets the b.
PatternColorSpaceGradientAxialShading?Read/WriteOptional gradient/pattern color space.
BlackColorReadGets the black.
WhiteColorReadGets the white.
RedColorReadGets the red.
GreenColorReadGets the green.
BlueColorReadGets the blue.
PurpleColorReadGets the purple.
GrayColorReadGets the gray.
LightGrayColorReadGets the light gray.
TomatoColorReadGets the tomato.
YellowColorReadGets the yellow.
AquaColorReadGets the aqua.

Methods

SignatureDescription
Color()Calls Color on this Color instance.
Color(r: double, g: double, b: double)
FromRgb(r: int, g: int, b: int)Calls FromRgb on this Color instance.
Parse(hex: string)Parse a hex color string like “#RRGGBB” or “#RGB”.

See Also