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
 Measure line - label position problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Pawel

Poland
33 Posts

Posted - Apr 06 2019 :  16:22:52  Show Profile  Reply
Why when I show a label on measure line, begin and end poins are in other places?

please look on my examples:

1: I drew a line

2. Then I turned on Ruler mode and Label Position At Start .

or At End

Please look, where are begin/end points

3. When I turned on a Label Position At Above

now a line length is 366.97 px
But previosly length was 417,22 px

So, what is a real length of my line?

aleatprog

132 Posts

Posted - Apr 07 2019 :  03:20:30  Show Profile  Reply
Measuring your images, Pawel, all lengths are correct. Line #4 is shorter than line #2 and #3 (look at start & end points).
Go to Top of Page

xequte

38610 Posts

Posted - Apr 07 2019 :  05:49:53  Show Profile  Reply
Hi

Changing the label position will unavoidably change the position of the line (though the reported lengths will still be correct).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Pawel

Poland
33 Posts

Posted - Apr 07 2019 :  11:33:22  Show Profile  Reply
if label change the position of begin/end the line, then length will change.
So how would I know, which reported lengths will still be correct?
Go to Top of Page

xequte

38610 Posts

Posted - Apr 07 2019 :  15:14:10  Show Profile  Reply
Hi

You should set the ruler mode and label position before drawing the line.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Pawel

Poland
33 Posts

Posted - Apr 12 2019 :  06:31:24  Show Profile  Reply
but it does not matter when you set the label position.
try to draw short line (10 pixels) and the label causes the value shown to be much longer (50-60 pixels).
I think, the component measures the distance between the corners of the layer (include label length) instead the begin point and the end point of the line.
Go to Top of Page

zerob

161 Posts

Posted - Apr 12 2019 :  08:30:59  Show Profile  Reply
I also would prefer imageEn be able to automatically position itself no matter at which point you switch the label position.
Go to Top of Page

xequte

38610 Posts

Posted - Apr 12 2019 :  19:53:09  Show Profile  Reply
Hi

Yes, I agree. Improved line handling is on the to-do list.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38610 Posts

Posted - Nov 13 2019 :  18:21:52  Show Profile  Reply
FYI, improved point handling for TIELineLayers has been implemented in 8.7.6. You can email me for a pre-release.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: