GetLayerInfo

All Editions image\bltlrgss.gif Related Transactions  image\bltlrgss.gif Example

The GetLayerInfo transaction returns information about the specified layer.

Type XTYP_REQUEST

Syntax [GetLayerInfo(docwinID, layerID, <pageID>)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

identifier of the layer to query

pageID

DWORD

0 | pageID

current | specific. Optional parameter.

Reply

Data type

Values

Meaning

layerType

WORD

1 | 2

edit | raster

"headerString"

string

header format

"dataString"

string

data format

colorCount

WORD

number of colors (raster)

sizePixelX

WORD

width in pixels

sizePixelY

WORD

height in pixels

resolutionX

WORD

horizontal resolution in dpi

resolutionY

WORD

vertical resolution in dpi

tileCount

WORD

number of tiles (raster)

tileSizeX

WORD

width of each tile in pixels (raster)

tileSizeY

WORD

height of each tile in pixels (raster)

entityCount

WORD

number of objects (edit)

selectedCount

WORD

number of selected objects (edit)

formatID

WORD

file format identifier

"fileName"

string

file name including path of the layer file

subPgNum

WORD

page number within multipage document (zero-based index)

rotation

WORD

0 | 90 | 180 | 270

image rotation in counter-clockwise degrees (raster header rotation only)

image\tips.gif Parameter tip

Release Information

Added in Release 3.70.

See also

Getting layer information