ImageGear Professional DLL v17.1 for Windows Accusoft
IG_PDE_element_get_gstate
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_ELEMENT > IG_PDE_element_get_gstate

Glossary Item Box

Gets the graphics state information for an element.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_element_get_gstate(
        HIG_PDE_ELEMENT hElement,
        LPAT_PDE_GRAPHICSTATE lpGstate );

Arguments:

hElement An element whose graphics state is obtained.
lpGstate Pointer to AT_PDE_GRAPHICSTATE structure that contains graphics state information for hElement. This graphics state information may contain PDE objects for color spaces or an ExtGState. They are not acquired by this function. 
For a PDE Image, only the ExtGState value is used for images. For indexed images, the fill color space and values are categorized in the PDE Image object.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

This function is only valid for PDE Form, PDE Image, PDE Path, and PDE Shading elements.

Non-NULL objects in the graphic state, such as the fill and stroke color spaces, have their reference counts incremented by this function. Be sure to release these non-NULL objects when disposing of lpGstate.

©2012. Accusoft Corporation. All Rights Reserved.