ColorParse Method
Parse a string to extract a color.

Namespace:  TallComponents.PDF.Colors
Assembly:  TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 4.0.94.0
Syntax
public static Color Parse(
	string color
)

Parameters

color
Type: SystemString
A string describing a color.

Return Value

Type: Color
A Color.
Remarks
The string representation of a color can be on of the following:
FormatDescription
#RRGGBB Web color. Each component is a 2-digit hexadecimal number (00 - FF). For example: #9963FA
gray Gray color. gray is a value in the range 0 - 255. For example: 128
r,g,b RGB color. Each component is a value in the range 0 - 255. For example: 128,5,233
c,m,y,k CMYK color. Each component is a value in the range 0 - 255. For example: 12,255,6,128
ColorName A named color. Currently supported are all named colors available in System.Drawing.Color. For example: SkyBlue
Instead of the fixed values (0-255) also a relative value (0%-100%) is allowed. This is converted to 0-255.
See Also