Click or drag to resize

PdfColorFromPattern(PdfColorSpace, PdfPattern, Double) Method

Creates a new PdfColor structure in Pattern color space by using the specified uncolored tiling PdfPattern and colorant values.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntax
public static PdfColor FromPattern(
	PdfColorSpace space,
	PdfPattern pattern,
	params double[] colorants
)

Parameters

space  PdfColorSpace
The Pattern color space.
pattern  PdfPattern
The pattern.
colorants  Double
The colorant values.

Return Value

PdfColor
A new PdfColor structure in Pattern color space created by using the specified uncolored tiling PdfPattern and colorant values.
Exceptions
ExceptionCondition
ArgumentNullExceptionspace or pattern or colorants is .
ArgumentExceptionspace's Family is not Pattern or pattern is colored or invalid number of colorants specified or any element of the colorants array is either NaN, NegativeInfinity or PositiveInfinity.
See Also