ImageEn, unit IEVect

TImageEnVect.GetIndexFromObj

TImageEnVect.GetIndexFromObj


Declaration

function GetIndexFromObj(hobj: integer): integer;


Description

Returns the object's z-index from the object handle, where 0 is the object closest to the background, 1 is the object in front of that, 2 the next, etc.

This is the inverse of GetObjFromIndex.


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of GetIndexFromObj, use: TIELayer.Index.
Note: Index of 0 is the background layer

idx := ImageEnView1.CurrentLayer.Index;