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;