The ExportLayer transaction saves a layer as a new document using the specified parameters, without changing any of the properties of the existing layer.
Type XTYP_EXECUTE
Syntax [ExportLayer(docwinID, layerID, saveas, "fileName", "layerLabel", checkExistence, formatID, rotation)]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific |
|
layerID |
DWORD |
identifier of the layer to export | |
|
saveas |
BOOL |
0 1 |
use existing name use fileName |
|
fileName |
file name including path to save the layer under | ||
|
layerLabel |
string |
label, maximum 80 characters | |
|
checkExistence |
BOOL |
0 1 |
do not check check for existence of file with the same name |
|
formatID |
WORD |
0 |
keep current format identifier of the file format to use. See Remarks. |
|
rotation |
WORD |
-1 |
current rotation. |
Remarks
You can use GetFormatList to obtain a list of valid raster formats for formatID. FormatID is ignored if no fileName is specified.
Release information
Added in Release 3.50.
See also