GetActiveLayer

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

The GetActiveLayer transaction returns the identifiers of the active layer or layers in the specified document window. Certain transactions apply to active layers only. For example, objects can only be placed or modified on active edit layers. Raster operations such as Deskew, DespeckleEx, and ChangeRaster apply only to active raster layers.

Type XTYP_REQUEST

Syntax [GetActiveLayer(docwinID, <pageID>)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

pageID

DWORD

0 | pageID

current | specific. Optional parameter.

Reply

Data type

Values

Meaning

rlayerID

DWORD

0

rlayerID

none

identifier of the active raster layer

elayerID

DWORD

0

elayerID

none

identifier of the active edit layer

Remarks

Two layerIDs will be returned because two layers (one raster layer and one edit layer) can be active at once.

Release information

Added in Release 3.50.

See also

Overview: Improving raster images

Defining tools

Modifying objects