ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Label position on TIELineLayer

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Guido Cavalera Posted - May 28 2026 : 11:08:47
In the event imgViewNewLayer(...), when draw a line with mouse, is possible to show the label on the position as showed in the image attached ? at start or end of line (is same)


My code is

procedure TfrmMain.imgViewNewLayer(Sender: TObject; LayerIdx: Integer; LayerKind: TIELayerKind);
var lineLayer: TIELineLayer;
  txtLayer: TIETextLayer;
begin
  If(rgrToolType.ItemIndex = 0)AND(LayerKind = ielkLine)Then Begin
    lineLayer:=TIELineLayer(imgView.Layers[LayerIdx]);
    lineLayer.RulerMode:=iermLabel;
    lineLayer.RulerUnits:=ieuMillimeters;
    IEGlobalSettings().MeasureDecimalPlaces:=1;

    lineLayer.StartShape:=ieesBar;
    lineLayer.EndShape:=ieesBar;
    lineLayer.LineColor:=clRed;
    lineLayer.LineWidth:=2;

    lineLayer.LabelPosition:=ielpAutoAbove;
    lineLayer.LabelFont.Size:=6;
    lineLayer.LabelFont.Color:=clRed;
    //lineLayer.LabelText:= IntToStr(LayerIdx); // occorre settare RulerMode:=iermNone;

    lineLayer.Selected:=False; // altrim mi crea il contorno tratteggiato di selezione


Thank you



3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 28 2026 : 22:43:25
Hi

The current options are:

- Make the layer partially transparent

- Custom draw text yourself using one of the TImageEnView draw events
http://www.imageen.com/help/TImageEnView.OnDrawCanvas.html

- Use the interaction hint to display the size
http://www.imageen.com/help/TImageEnView.SetInteractionHint.html

Nigel
Xequte Software
www.imageen.com
Guido Cavalera Posted - May 28 2026 : 22:31:31
The reason is to free image (or lesion) from objects that might hide interesting parts to evaluate. Having a dotted or dashed line is useful too.
xequte Posted - May 28 2026 : 16:44:56
Sorry, that is unsupported at this time.

Nigel
Xequte Software
www.imageen.com