Getting layer information

 

An application can request the numbers and identifiers that are assigned to a layer or layers, as well as information about the layer itself. To do so, use the following functions.

To request

Use

The identifier of the active edit layer and the active raster layer on a page

IN_GetActiveLayer

The number of layers or CAD layers in a page or edit layer, and their identifiers

IN_GetLayerIDs

The number of layers in a page, or the number of CAD layers in an edit layer

IN_GetNumberLayers

The identifier of the page that contains a layer

IN_GetParentID

The layer type, raster and header format, the number of colors (for rasters), image size and resolution, number of tiles (raster) or number of objects (edit), page number (if relevant), and header rotation (if any)

IN_GetLayerInfo

The number of bits, the number of colors, and if Gray Scale is turned on

IN_GetLayerProperties

See also

Getting page information

Getting document information

Getting document window information

Getting page and layer extents