Click or drag to resize

PdfiumFPDFFunction_CreatePS Method

Create a PostScript calculator function.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDFFunction_CreatePS(
	int numOfInputs,
	int numOfOutputs,
	float[] domain,
	float[] range,
	byte[] psProg
)

Parameters

numOfInputs  Int32
The number of input values of a function.
numOfOutputs  Int32
The number of output values of a function.
domain  Single
The domain of definition of a function.
range  Single
The range of a function.
psProg  Byte
A PostScript program represented by byte array.

Return Value

IntPtr
The handle to the created function.
Remarks
DomainRequiredAn array of 2 × numOfInputs numbers. Input values outside the declared domain are clipped to the nearest boundary value.
RangeRequiredAn array of 2 × numOfOutputs numbers. Output values outside the declared range are clipped to the nearest boundary value.
psProgRequiredA PostScript code written in a small subset of the PostScript language.
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