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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 HIDE the dotted border-line of a Layer?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

859 Posts

Posted - Jul 26 2021 :  05:49:05  Show Profile  Reply
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?

PeterPanino

859 Posts

Posted - Jul 26 2021 :  06:05:59  Show Profile  Reply
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?
Go to Top of Page

xequte

38176 Posts

Posted - Jul 26 2021 :  18:21:19  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: