Click or drag to resize

PdfiumFPDFShadingType1_SetDomain Method

Set the rectangular domain of coordinates over which the color function(s) are defined.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static bool FPDFShadingType1_SetDomain(
	IntPtr shadding_pattern,
	float xMin,
	float yMin,
	float xMax,
	float yMax
)

Parameters

shadding_pattern  IntPtr
The handle to the shading pattern.
xMin  Single
The minimum value of the rectangular domain of coordinates in horizontal dimension.
yMin  Single
The minimum value of the rectangular domain of coordinates in vertical dimension.
xMax  Single
The maximum value of the rectangular domain of coordinates in horizontal dimension.
yMax  Single
The maximum value of the rectangular domain of coordinates in vertical dimension.

Return Value

Boolean
True for successful; false if any error has occurred.
Remarks
The domain rectangle establishes an internal coordinate space for the shading that is independent of the target coordinate space in which it is to be painted.
Note  Note
Only applicable to Type 1 (Function-Based) shadings (FunctionBasedShading).
See Also