ImageEn, unit ievect

TImageEnVect.ObjKind

TImageEnVect.ObjKind


Declaration

property ObjKind[hobj: integer]: TIEVObjectKind;


Description

ObjKind is the type (line, ellipse...) of object hobj.

hobj is the ID of the object. You can also specify IEV_NEXT_INSERTED_OBJECT (-1) which refers to the next object to be inserted or IEV_PREVIOUS_INSERTED_OBJECT (-2) for the last object inserted.


Example

// Load an image from file and add as an object
aBitmap := TIEBitmap.Create;
try
  aBitmap.Read( 'd:\002.png' );
  hObj := ImageEnVect1.AddNewObject();
  ImageEnVect1.ObjKind[ hObj ] := iekBITMAP;
  ImageEnVect1.ObjBitmap[ hObj ] := aBitmap;
  ImageEnVect1.SetObjRect( hobj, Rect( 100, 100, 200, 200 ), True );
finally
  aBitmap.Free;
end;