 | PdfiumFPDFFunction_CreateStitch Method |
Create a stitching of the subdomains of several 1-input functions to produce a single new 1-input function.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDFFunction_CreateStitch(
IntPtr document,
int numOfOutputs,
IntPtr[] functions,
float[] encode,
float[] bounds,
float[] domain,
float[] range = null
)
Public Shared Function FPDFFunction_CreateStitch (
document As IntPtr,
numOfOutputs As Integer,
functions As IntPtr(),
encode As Single(),
bounds As Single(),
domain As Single(),
Optional range As Single() = Nothing
) As IntPtr
public:
static IntPtr FPDFFunction_CreateStitch(
IntPtr document,
int numOfOutputs,
array<IntPtr>^ functions,
array<float>^ encode,
array<float>^ bounds,
array<float>^ domain,
array<float>^ range = nullptr
)
static member FPDFFunction_CreateStitch :
document : IntPtr *
numOfOutputs : int *
functions : IntPtr[] *
encode : float32[] *
bounds : float32[] *
domain : float32[] *
?range : float32[]
(* Defaults:
let _range = defaultArg range null
*)
-> IntPtr
public static IntPtr FPDFFunction_CreateStitch(
IntPtr document,
int numOfOutputs,
IntPtr[] functions,
float[] encode,
float[] bounds,
float[] domain,
float[] range = null
)
Patagames.Pdf.Pdfium.FPDFFunction_CreateStitch = function(document, numOfOutputs, functions, encode, bounds, domain, range);
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
IntPtrThe handle to the created function.
RemarksDomain | Required | Since the resulting stitching function is a 1-input function, the domain is given by a two-element array. |
Range | Optional | An array of 2 × numOfOutputs numbers. Output values outside the declared range are clipped to the nearest boundary value. If absent, no clipping is done. |
functions | Required | An 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. |
bounds | Required | An 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. |
encode | Required | 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. |
See Also