Click or drag to resize

PdfiumFPDFFunction_CreateStitch Method

Create a stitching of the subdomains of several 1-input functions to produce a single new 1-input function.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDFFunction_CreateStitch(
	IntPtr document,
	int numOfOutputs,
	IntPtr[] functions,
	float[] encode,
	float[] bounds,
	float[] domain,
	float[] range = null
)

Parameters

document  IntPtr
The handle to the PDF document.
numOfOutputs  Int32
The number of output values of a function.
functions  IntPtr
An array of k 1-input functions making up the stitching function.
encode  Single
An array of 2 × k numbers that, taken in pairs, map each subset of the domain defined by Domain and the Bounds array to the domain of the corresponding function.
bounds  Single
An array of k − 1 numbers that, in combination with Domain, define the intervals to which each function from the Functions array applies.
domain  Single
The domain of definition of a function.
range  Single  (Optional)
The range of a function.

Return Value

IntPtr
The handle to the created function.
Remarks
DomainRequiredSince the resulting stitching function is a 1-input function, the domain is given by a two-element array.
RangeOptionalAn array of 2 × numOfOutputs numbers. Output values outside the declared range are clipped to the nearest boundary value. If absent, no clipping is done.
functionsRequiredAn array of k-1 handles to functions. The output dimensionality of all functions must be the same, and compatible with the value of Range if Range is present.
boundsRequiredAn array of k − 1 numbers that, in combination with Domain, define the intervals to which each function from the Functions array applies. Bounds elements must be in order of increasing value, and each value must be within the domain defined by Domain.
encodeRequiredAn array of 2 × k numbers that, taken in pairs, map each subset of the domain defined by Domain and the Bounds array to the domain of the corresponding function.
Note  Note
When an application is finished using the function handle returned by method, use the FPDFFunction_CloseHandle(IntPtr) function to close the handle.
See Also