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; 

The LAYERINFO structure describes the layer position within a file.






The PSD layer transparency data is locked.



The PSD layer is visible.



The PSD layer is obsolete.



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


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