LoadLayer method (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short LoadLayer(ILEADRaster *pRaster, BSTR pszName, short iBitsPerPixel, short iLayer);

Overview

Refer to Layers in Files

Remarks

Loads a layer from a file that contains layers. To determine whether a file contains layers, check the InfoLayers property.

Currently, only PSD files support layers, but not all PSD files contain layers.

The layers are numbered starting with 0. The first layer is 0; the second layer is 1, etc. Call the GetFileInfo method to update the InfoLayers property. The last layer in the file is InfoLayers - 1.

After a layer is loaded, the LayerLeft(0) and LayerTop(0) properties can be examined for positioning information on this layer.

See Also

Elements:

LayerLeft property, LayerTop property, Save method, SaveLayers property, GetFileInfo method, InfoLayers property

Topics:

Raster Images: Loading Files