LAYERINFO

typedef struct _LAYERINFO 
{ 
   L_UINT uStructSize; 
   L_INT nLayerLeft; 
   L_INT nLayerTop; 
   L_UCHAR uOpacity; 
   L_UCHAR uClipping; 
   L_UCHAR szBlendModeKey[4]; 
   pBITMAPHANDLE pMaskBitmap; 
   L_TCHAR szName[MAX_PATH]; 
   L_UINT uLayerFlags; 
} LAYERINFO, *pLAYERINFO; 

The LAYERINFO structure describes the layer position within a file.

 

Value

Meaning

 

LAYERINFO_TRANSPARENCYPROTECTED

The PSD layer transparency data is locked.

 

LAYERINFO_VISIBLE

The PSD layer is visible.

 

LAYERINFO_OBSOLETE

The PSD layer is obsolete.

 

LAYERINFO_PSD5ORLATER

The layer is PSD is generated or modified using Photoshop 5 or later.

Comments

pLAYERINFO is a pointer to a LAYERINFO structure. Where the function parameter type is pLAYERINFO, declare a LAYERINFO variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pLAYERINFO variable is necessary only if the program requires a pointer.

Some functions which take this structure as a parameter require that the structure be initialized prior to the function call. You must set the uStructSize member to the total size, in bytes, of the structure. Use the sizeof() operator to calculate this value. Functions that do not require the structure be initialized will take the total size of the structure, in bytes, as an additional function parameter.

Usually layers start in the top-left position of the image, so nLayerLeft and nLayerTop are 0 most of the time.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help