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;


Transition Information

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