Click or drag to resize

PdfiumFPDFShadingPattern_SetFunctions Method

Set the shading's functions.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static bool FPDFShadingPattern_SetFunctions(
	IntPtr shadding_pattern,
	IntPtr[] functions
)

Parameters

shadding_pattern  IntPtr
The handle to the shading pattern.
functions  IntPtr
An array of functions depending on the specific type of shading.

Return Value

Boolean
True for successful; false if any error has occurred.
Remarks
FunctionBasedShadingAn array of n 2-in, 1-out functions, where n is the number of color components in the shading’s color space.
AxialShadingAn array of n 1-in, 1-out functions, where n is the number of color components in the shading’s color space. The function(s) are called with values of the parametric variable t in the domain defined by the FPDFShadingType2_SetDomain(IntPtr, Single, Single) method.
RadialShadingAn array of n 1-in, 1-out functions, where n is the number of color components in the shading’s color space. The function(s) are called with values of the parametric variable t in the domain defined by the FPDFShadingType3_SetDomain(IntPtr, Single, Single) method.
FreeFormGouraudTriangleMeshShadingAn array of n 1-in, 1-out functions, where n is the number of color components in the shading’s color space. If this entry is present, the color data for each vertex must be specified by a single parametric variable rather than by n separate color components. The designated function(s) are called with each interpolated value of the parametric variable to determine the actual color at each point. Each input value is forced into the range interval specified for the corresponding color component in the shading dictionary’s Decode array. Each function’s domain must be a superset of that interval. If the value returned by the function for a given color component is out of range, it is adjusted to the nearest valid value.
LatticeFormGouraudTriangleMeshShadingAn array of n 1-in, 1-out functions, where n is the number of color components in the shading’s color space. If this entry is present, the color data for each vertex must be specified by a single parametric variable rather than by n separate color components. The designated function(s) are called with each interpolated value of the parametric variable to determine the actual color at each point. Each input value is forced into the range interval specified for the corresponding color component in the shading dictionary’s Decode array. Each function’s domain must be a superset of that interval. If the value returned by the function for a given color component is out of range, it is adjusted to the nearest valid value.
CoonsPatchMeshShadingAn array of n 1-in, 1-out functions, where n is the number of color components in the shading’s color space. If this entry is present, the color data for each vertex must be specified by a single parametric variable rather than by n separate color components. The designated function(s) are called with each interpolated value of the parametric variable to determine the actual color at each point. Each input value is forced into the range interval specified for the corresponding color component in the shading dictionary’s Decode array. Each function’s domain must be a superset of that interval. If the value returned by the function for a given color component is out of range, it is adjusted to the nearest valid value.
TensorProductPatchMeshShadingAn array of n 1-in, 1-out functions, where n is the number of color components in the shading’s color space. If this entry is present, the color data for each vertex must be specified by a single parametric variable rather than by n separate color components. The designated function(s) are called with each interpolated value of the parametric variable to determine the actual color at each point. Each input value is forced into the range interval specified for the corresponding color component in the shading dictionary’s Decode array. Each function’s domain must be a superset of that interval. If the value returned by the function for a given color component is out of range, it is adjusted to the nearest valid value.
See Also