Click or drag to resize

PdfiumFPDFShadingPattern_GetFunctions Method

Get the shading's functions.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr[] FPDFShadingPattern_GetFunctions(
	IntPtr shadding_pattern
)

Parameters

shadding_pattern  IntPtr
The handle to the shading pattern.

Return Value

IntPtr
An array of functions depending on the specific type of shading; null if any error has occurred.
Remarks
Note  Note
When an application is finished using the function handles, use the FPDFFunction_CloseHandle(IntPtr) function with each array item to close the handles.
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