TPDFDoubleArray

Data types, colour management

Description

TPDFDoubleArray is a dynamic array of Double, declared in PDFlibFunctions. TPDFFunction uses it for the Domain and Range arrays and for the input and output vectors of RunFunction; PLPureICCTransformComponents uses it for converted color samples.

The array is zero-based and is resized by the routine that fills it. For a PDF function, InputValueCount and OutputValueCount give the number of values a call consumes and produces, so the vectors must be sized accordingly.

Because it is a plain dynamic array, the same working vector can be reused across calls; the function classes resize the output vector as needed.

Syntax

Delphi

TPDFDoubleArray = Array Of Double;

Remarks

TPDFFunction reads Domain and Range as flat pairs; InputValueCount is Length(Domain) div 2 and OutputValueCount is Length(Range) div 2.

Domain and Range entries are read from the function dictionary; a non-numeric or non-finite entry raises EConvertError.

The array-typed function subclasses resize their output vector before filling it; TPDFFunctionArray.RunFunction sets the output length to the number of subfunctions.

The array is reference-counted and freed automatically, so a working vector needs no explicit disposal.

In PLPureICCTransformComponents, the converted array holds interleaved destination tuples whose length is the pixel count times the destination profile component count.

See also

PLPureICCTransformComponents, ICCComponentTransforms, PLApplyBlackPointCompensation