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
 HIDE the dotted border-line of a Layer?

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
PeterPanino Posted - Jul 26 2021 : 05:49:05
I used this demo to draw a FreeHand Line Layer with the mouse cursor:

Demos\LayerEditing\Layers_Lines

For a special purpose, I need to HIDE the dotted border-line of the Layer:



Is it possible to HIDE the dotted border-line of the Layer?
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 26 2021 : 18:21:19
Hi Peter

Rather than changing the selection status, I'd prefer you disable the drawing.

Use an empty OnDrawLayerBox to prevent a selection box from being drawn around the current layer

procedure Tfmain.ImageEnView1DrawLayerBox(Sender: TObject; ACanvas: TCanvas; LayerIndex: Integer);
begin
  //
end;


There is currently not a method to define the frequency of points, but we will look into that for a layer update.

You can simplify the line *after* drawing using:

https://www.imageen.com/help/TIEPolylineLayer.SimplifyPolygon.html

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Jul 26 2021 : 06:05:59
This is easy:

procedure Tfmain.ImageEnView1NewLayer(Sender: TObject; LayerIdx: Integer; LayerKind: TIELayerKind);
begin
  ImageEnView1.Layers[LayerIdx].Selected := False;
end;


Is it possible to restrict the number of points when drawing a Freehand Line in this way? For example, define the minimum distance as a number of pixels between two adjacent points?