ImageEn, unit ievect

TImageEnVect.GetObjFromIndex

TImageEnVect.GetObjFromIndex


Declaration

function GetObjFromIndex(idx: integer): integer;


Description

GetObjFromIndex returns the object handle of the idx object.
It is useful to iterate over all vectorial objects (in tandem with ObjectsCount).


Example

// changes to red pen color for each object
for i := 0 to ImageEnVect1.ObjectsCount - 1 do
begin
  hobj := ImageEnVect1.GetObjFromIndex( i );
  ImageEnVect1.ObjPenColor[ hobj ] := clRed;
end;


Transition Information

There is no TImageEnView Layer equivalent of GetObjFromIndex. It is not needed. Layers are always referenced by index (where 0 is the background layer and LayersCount-1 is the foremost layer)