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.
// Load an image from file and add as an object
aBitmap := TIEBitmap.Create;
try
aBitmap.LoadFromFile( '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;
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of ObjKind, use:
TIELayer.Kind. Layer and object equivalents are as follows: