TLayeredImage32.DeleteLayer

procedure DeleteLayer(layer: TLayer32); overload;

procedure DeleteLayer(layerIndex: integer; groupOwner: TGroupLayer32 = nil); overload;


Deletes the specified layer. Layers within the same group above the deleted layer (ie with higher indexes) will automatically have their indexes decremented.