PdfColorFromHex Method

Creates a color from a hexadecimal color string

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public static PdfColor FromHex(
	string hex
)

Parameters

hex  String
A hexadecimal color string in the format #RRGGBB or RRGGBB

Return Value

PdfColor
A color instance

See Also