ImageGear for C and C++ on Windows v20.5 - Updated
IG_layer_array_layer_insert
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Layer Functions > IG_layer_array_layer_insert

This function inserts the layer at the specified index position of the layer array.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_layer_array_layer_insert(
        HIGLAYERARRAY hLayers,
        AT_INT nIndex,
        HIGLAYER hLayer
);

Arguments:

Name Type Description
hLayers HIGLAYERARRAY Handle to the layer array object.
nIndex AT_INT Index at which to insert.
hLayer HIGLAYER Handle to the inserted layer.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

The layer object is not copied. Instead, a reference is inserted at the specified position.

Is this page helpful?
Yes No
Thanks for your feedback.