ImageEn, unit IEVect

TImageEnVect.ObjWidth

TImageEnVect.ObjWidth


Declaration

property ObjWidth[hobj: integer]: integer;


Description

Specifies the width of hobj object. The coordinates are in pixels with zoom = 100%.
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

// This code creates a Box at 10, 10 of 50x50 pixels
ImageEnVect1.ObjKind   [IEV_NEXT_INSERTED_OBJECT] := iekBOX;
ImageEnVect1.ObjLeft   [IEV_NEXT_INSERTED_OBJECT] := 10;
ImageEnVect1.ObjTop    [IEV_NEXT_INSERTED_OBJECT] := 10;
ImageEnVect1.ObjWidth  [IEV_NEXT_INSERTED_OBJECT] := 50;
ImageEnVect1.ObjHeight [IEV_NEXT_INSERTED_OBJECT] := 50;
ImageEnVect1.AddNewObject();


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of ObjWidth, use: TIELayer.Width

ImageEnView1.CurrentLayer.Width := 200;
ImageEnView1.Update();