Layer | PDFEdit_Layer |
Object | PDEPath |
A PDEPath is a PDEElement that contains a path. It can have fill and stroke attributes. It also has graphics state attributes. The shape of a PDEPath can be used to represent a clipping path.
The PDEPath methods allow constructing a path from segments and setting its fill and stroke attributes.
Typedef | ||
---|---|---|
PDEPath
A PDEElement that contains a path. Path objects can be stroked, filled, and/or serve as clipping paths.
|
Enumeration | ||
---|---|---|
PDEPathElementType
An enumerated data type for path segment operators in PDEPath elements.
|
||
PDEPathOpFlags
Flags for paint operators in a PDEPath.
|
Method | ||
---|---|---|
void PDEPathAddSegment(INPDEPath path, INASUns32 segType, INASFixed x1, INASFixed y1, INASFixed x2, INASFixed y2, INASFixed x3, INASFixed y3)
Adds a segment to a path. The number of ASFixed values used depends upon segType:
|
||
PDEPath PDEPathCreate()
Creates an empty path element.
|
||
Gets the size of the path data and, optionally, the path data.
|
||
Gets the size of the path data and, optionally, the path data. This API is an extension to the PDEPathGetData API.
|
||
ASUns32 PDEPathGetPaintOp(INPDEPath path)
Gets the fill and stroke attributes of a path.
|
||
Sets new path data for a path element.
|
||
Sets new path data for a path element. This API is an extension to the PDEPathSetData API.
|
||
Sets the fill and stroke attributes of a path.
|
PDEPath |
Product availability: All |
Platform availability: All |
typedef struct _t_PDEPath* PDEPath;
A PDEElement that contains a path. Path objects can be stroked, filled, and/or serve as clipping paths.
See Also
File: PEExpT.h |
Line: 171 |
PDEPathElementType |
Product availability: All |
Platform availability: All |
enum PDEPathElementType {
kPDEMoveTo,
kPDELineTo,
kPDECurveTo,
kPDECurveToV,
kPDECurveToY,
kPDERect,
kPDEClosePath,
kPDEPathLastType
}
See Also
File: PEExpT.h |
Line: 1582 |
kPDEMoveTo | Designates the m ( |
|
kPDELineTo | Designates the l ( |
|
kPDECurveTo | Designates the c ( |
|
kPDECurveToV | Designates the v ( |
|
kPDECurveToY | Designates the y ( |
|
kPDERect | Designates the re operator, which adds a rectangle to the current path. |
|
kPDEClosePath | Designates the h ( |
|
PDEPathOpFlags |
Product availability: All |
Platform availability: All |
enum PDEPathOpFlags {
kPDEInvisible = 0x00,
kPDEStroke = 0x01,
kPDEFill = 0x02,
kPDEEoFill = 0x04
}
See Also
File: PEExpT.h |
Line: 1624 |
kPDEInvisible | The path is neither stroked nor filled, so it is invisible. |
|
kPDEStroke | Stroke the path, as with the S ( |
|
kPDEFill | Fills the path, using the nonzero winding number rule to determine the region to fill, as with the f ( |
|
kPDEEoFill | Fills the path, using the even/odd rule to determine the region to fill, as with the f* ( |
PDEPathAddSegment | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDEPathAddSegment(INPDEPath path, INASUns32 segType, INASFixed x1, INASFixed y1, INASFixed x2, INASFixed y2, INASFixed x3, INASFixed y3)
Adds a segment to a path. The number of ASFixed values used depends upon segType
:
|
ASFixed values |
---|---|
kPDEMoveTo |
|
kPDELineTo |
|
kPDECurveTo |
|
kPDECurveToV |
|
kPDECurveToY |
|
kPDERect |
|
kPDEClosePath |
None |
Parameters
path — | IN/OUT The path to which a segment is added. |
|
segType — | IN/OUT A PDEPathElementType value indicating the type of path to add. |
|
x1 — | IN/OUT The x-coordinate of the first point. |
|
y1 — | IN/OUT The y-coordinate of the first point. |
|
x2 — | ||
y2 — | ||
x3 — | IN/OUT The x-coordinate of the third point. |
|
y3 — | IN/OUT The y-coordinate of the third point. |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 1516 |
PDEPathCreate | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDEPath PDEPathCreate()
Creates an empty path element.
Call PDERelease() to dispose of the returned path object when finished with it.
ReturnsAn empty path element. |
Since
File: PEWProcs.h |
Line: 527 |
PDEPathGetData | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Gets the size of the path data and, optionally, the path data.
Parameters
path — | ||
data — | IN/OUT (Filled by the method) A pointer to the path data. If |
|
dataSize — | IN/OUT Specifies the size of the buffer provided in data. If it is less than the length of the path data, the method copies |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 773 |
PDEPathGetDataEx | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Gets the size of the path data and, optionally, the path data. This API is an extension to the PDEPathGetData
API.
Parameters
path — | ||
data — | IN/OUT (Filled by the method) A pointer to the path data. If |
|
dataSize — | IN/OUT Specifies the size of the buffer provided in data. If it is less than the length of the path data, the method copies |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 3532 |
PDEPathGetPaintOp | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Gets the fill and stroke attributes of a path.
Parameters
path — | The path whose fill and stroke attributes are obtained. |
A set of PDEPathOpFlags flags describing fill and stroke attributes. |
See Also
Exceptions
Since
File: PERProcs.h |
Line: 786 |
PDEPathSetData | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets new path data for a path element.
Parameters
path — | ||
data — | IN/OUT 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 ASFixedPoint values, depending on the operator. Operators are codes for |
|
dataSize — |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 501 |
PDEPathSetDataEx | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets new path data for a path element. This API is an extension to the PDEPathSetData
API.
Parameters
path — | ||
data — | IN/OUT 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 ASReal values, depending on the operator. Operators are codes for |
|
dataSize — |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 4158 |
PDEPathSetPaintOp | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets the fill and stroke attributes of a path.
Parameters
path — | IN/OUT The path whose fill and stroke attributes are set. |
|
op — | IN/OUT The operation to set; it must be one of PDEPathOpFlags. |
See Also
Exceptions
Since
File: PEWProcs.h |
Line: 516 |