DL Logo

PDEPath Functions

PDEPathGetDataDouble

Header: DLExtrasProcs.h:1112

Description

Gets the size of the path data.

Syntax

ASUns32 PDEPathGetDataDouble(IN PDEPath path, OUT ASDouble *data, IN ASUns32 dataSize);

Parameters

path
IN The path whose data is obtained.
data
OUT A pointer to the path data. If data is non- NULL, it contains a variable-sized array of path operators and operands. The format is a 32-bit operator followed by 0 to 3 ASDouble values, depending on the operator. Opcodes are codes for moveto, lineto, curveto, rect, or closepath operators; operands are ASDouble values. If data is NULL, the number of bytes required for data is returned by the method. Note that it returns raw path data. If you want the points in page coordinates, concatenate the path data points with the PDEElement matrix obtained from PDEElementGetMatrix().
dataSize
IN Specifies the size of the buffer provided in data. If it is less than the length of the path data, the method copies dataSize bytes.

Returns

The length of the data of path.

PDEPathGetDataFloat

Header: PERProcs.h:3436

Description

Superseded by PDEPathGetDataEx(). Get path using float-point values for coordinate values. This effectively removes the PDEPathGetData implementation limit that path coordinate values need to be no larger than +/-32767.0.

Syntax

ASUns32 PDEPathGetDataFloat(IN PDEPath path, OUT ASFloat *data, IN ASUns32 dataSize);

PDEPathSetDataDouble

Header: DLExtrasProcs.h:1093

Description

Sets the size of the path data.

Syntax

void PDEPathSetDataDouble(IN PDEPath path, IN ASDouble *data, IN ASUns32 dataSize);

Parameters

path
IN The path whose data is set.
data
IN A pointer to the path data. It is a variable-sized array of path operators and operands. The format is a 32-bit operator followed by zero to three ASDouble values, depending on the operator. Operators are codes for moveto, lineto, curveto, rect, or closepath operators, and must be one of PDEPathElementType. Operands are ASDouble values. The data is copied into the PDEPath object.
dataSize
IN The size of the new path data in bytes.

PDEPathSetDataFloat

Header: PEWProcs.h:3855

Description

Superseded by PDEPathSetDataEx(). Set path using floats for pdfs that use larger values than will fit in ASFixed/ASInt32.

Syntax

void PDEPathSetDataFloat(IN PDEPath path, IN ASFloat *data, IN ASUns32 dataSize);