ImageGear for C and C++ on Windows v19.6 - Updated
AT_PDE_GRAPHICSTATE
API Reference Guide > PDF Component API Reference > PDF Component Structures Reference > AT_PDE_GRAPHICSTATE

Attributes of a PDE element or a PDE text sub-element.

Declaration:

 
Copy Code
typedef struct tagAT_PDE_GRAPHICSTATE
{
        UINT wasSetFlags;
        AT_PDE_COLORSPEC fillColorSpec;
        AT_PDE_COLORSPEC strokeColorSpec;
        AT_PDE_DASH dash;
        AT_PDF_FIXED lineWidth;
        AT_PDF_FIXED miterLimit;
        AT_PDF_FIXED flatness;
        LONG lineCap;
        LONG lineJoin;
        HIG_PDF_ATOM renderIntent;
        HIG_PDE_OBJECT extGState;
        AT_PDF_FIXEDMATRIX softMaskMatrix;
} AT_PDE_GRAPHICSTATE;
typedef AT_PDE_GRAPHICSTATE FAR* LPAT_PDE_GRAPHICSTATE;

Members:

Name Type Description
wasSetFlags UINT enumIGPDEGraphicStateWasSetFlags indicating if an attribute has been set. 
Support for these flags is not complete. For compatibility, you should set them, but do not depend on reading their values back. The intended use is with XObject Forms to indicate whether the value is inherited or explicitly set.
fillColorSpec AT_PDE_COLORSPEC Fill color specification. The default value is DeviceGray, IG_PDF_FIXED_ZERO.
strokeColorSpec AT_PDE_COLORSPEC Stroke color specification. The default value is DeviceGray, IG_PDF_FIXED_ZERO.
dash AT_PDE_DASH Dash specification. The default value is [0, 0].
lineWidth AT_PDF_FIXED Line width, corresponding to the w (setlinewidth) operator. The default value is IG_PDF_FIXED_ONE.
miterLimit AT_PDF_FIXED Miter limit, corresponding to the M (setmiterlimit) operator. The default value is IG_PDF_FIXED_TEN.
flatness AT_PDF_FIXED Line flatness, corresponding to the i (setflat) operator. The default value is IG_PDF_FIXED_ZERO.
lineCap LONG Line cap style, corresponding to the J (setlinecap) operator. The default value is 0.
lineJoin LONG Line join style, corresponding to the j (setlinejoin) operator. The default value is 0.
renderIntent HIG_PDF_ATOM A color rendering intent, corresponding to the Intent key in the image dictionary. The default value is 0.
extGState HIG_PDE_OBJECT An extended graphics, corresponding to the gs operator. The default value is NULL.
softMaskMatrix AT_PDF_FIXEDMATRIX The CTM at the time soft mask was established. The default value is identity matrix.