 | PdfiumFPDFFunction_CreateSampled Method |
Create sampled function.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDFFunction_CreateSampled(
int numOfInputs,
int numOfOutputs,
float[] domain,
float[] range,
int[] numOfSamples,
int bitsPerSample,
byte[] sampleTable,
float[] encode = null,
float[] decode = null,
int order = 0
)
Public Shared Function FPDFFunction_CreateSampled (
numOfInputs As Integer,
numOfOutputs As Integer,
domain As Single(),
range As Single(),
numOfSamples As Integer(),
bitsPerSample As Integer,
sampleTable As Byte(),
Optional encode As Single() = Nothing,
Optional decode As Single() = Nothing,
Optional order As Integer = 0
) As IntPtr
public:
static IntPtr FPDFFunction_CreateSampled(
int numOfInputs,
int numOfOutputs,
array<float>^ domain,
array<float>^ range,
array<int>^ numOfSamples,
int bitsPerSample,
array<unsigned char>^ sampleTable,
array<float>^ encode = nullptr,
array<float>^ decode = nullptr,
int order = 0
)
static member FPDFFunction_CreateSampled :
numOfInputs : int *
numOfOutputs : int *
domain : float32[] *
range : float32[] *
numOfSamples : int[] *
bitsPerSample : int *
sampleTable : byte[] *
?encode : float32[] *
?decode : float32[] *
?order : int
(* Defaults:
let _encode = defaultArg encode null
let _decode = defaultArg decode null
let _order = defaultArg order 0
*)
-> IntPtr
public static IntPtr FPDFFunction_CreateSampled(
int numOfInputs,
int numOfOutputs,
float[] domain,
float[] range,
int[] numOfSamples,
int bitsPerSample,
byte[] sampleTable,
float[] encode = null,
float[] decode = null,
int order = 0
)
Patagames.Pdf.Pdfium.FPDFFunction_CreateSampled = function(numOfInputs, numOfOutputs, domain, range, numOfSamples, bitsPerSample, sampleTable, encode, decode, order);
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.
- numOfSamples Int32
- The number of samples in each input dimension of the sample table.
- bitsPerSample Int32
- The number of bits used to represent each sample.
- sampleTable Byte
- A sequence of sample values which are organized as an numOfInputs - dimensional table.
- encode Single (Optional)
- The linear mapping of input values into the domain of the function’s sample table.
- decode Single (Optional)
- The linear mapping of sample values into the range appropriate for the function’s output values.
- order Int32 (Optional)
- The order of interpolation between samples.
Return Value
IntPtrThe handle to the created function.
Remarksdomain | Required | An array of 2 ×numOfInputs numbers. Input values outside the declared domain are clipped to the nearest boundary value. |
range | Required | An array of 2 ×numOfOutputs numbers. Output values outside the declared range are clipped to the nearest boundary value. |
numOfSamples | Required | An array of numOfInputs positive integers specifying the number of samples in each input dimension of the sample table. |
bitsPerSample | Required | A number of bits used to represent each sample. (If the function has multiple output values, each one occupies BitsPerSample bits.) Valid values are 1, 2, 4, 8, 12, 16, 24, and 32. |
encode | Optional | An array of 2 ×numOfInputs numbers specifying the linear mapping of input values into the domain of the function’s sample table. |
decode | Optional | An array of 2 ×numOfOutputs numbers specifying the linear mapping of sample values into the range appropriate for the function’s output values. |
order | Optional | The order of interpolation between samples. Valid values are 1 and 3, specifying linear and cubic spline interpolation, respectively. |
See Also