ImageGear for C and C++ on Windows v19.1 - Updated
IG_layer_array_layer_remove
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Layer Functions > IG_layer_array_layer_remove

This function removes the layer at the specified position from the the layer array.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_layer_array_layer_remove(
        HIGLAYERARRAY hLayers,
        AT_INT nIndex
);

Arguments:

Name Type Description
hLayers HIGLAYERARRAY Handle to the layer array object.
nIndex AT_INT Index of the layer to remove.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

The layer object at the specified position is destroyed by this function.