ImageEn, unit ievect

TImageEnVect.GetObjFromID

TImageEnVect.GetObjFromID


Declaration

function GetObjFromID(oID: integer): integer;


Description

GetObjFromID finds first object with the specified ID.
IDs are stored in ObjID.
The returned value is the handle of the object.


Example

// set pencolor to clRed to the first object that has ObjID[]=17
var
  hobj: integer;
begin
...
  hobj := ImageEnVect1.GetObjFromID(17);
  ImageEnVect1.ObjPenColor[hobj] := clRed;
..
end;