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
 Reverse vertical direction of a Line?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Oct 22 2022 :  13:19:02  Show Profile  Reply
ImageEn 11.4.0
Delphi 11.2

I create a Line Layer with this code:

ImageEnView1.MouseInteractLayers := [mlCreateLineLayers];


Then, in the OnNewLayer event-handler, I adjust the line properties:

TIELineLayer(ImageEnView1.CurrentLayer).LineColor := clRed;
TIELineLayer(ImageEnView1.CurrentLayer).LineWidth := 3;
TIELineLayer(ImageEnView1.CurrentLayer).StartShape := ieesArrow;


It works. But in previous ImageEn versions, I could drag the bottom-right corner ABOVE the top Layer edge to easily reverse the vertical direction of the Line Layer. This was visible if the line endings were different from each other. It seems this is no anymore possible. Or am I overseeing an additional property?

PeterPanino

933 Posts

Posted - Oct 22 2022 :  13:54:01  Show Profile  Reply
In the demo \Demos\LayerEditing\Layers_Lines this is possible. But I could not find out the difference between my project where this is not possible.

UPDATE: I have now PARTLY solved the problem by using mlClickCreateLineLayers instead of mlCreateLineLayers: Now I can drag the line end over the insertion point in ALL ANGLES - but only while drawing. When finished drawing the line, the right-bottom corner grip can still not be dragged above the top edge. The documentation doesn't mention this feature.

This is the layer that cannot be vertically flipped:



And this is the Layer from the demo mentioned before that CAN be vertically flipped and in all angles:

Go to Top of Page

xequte

38609 Posts

Posted - Oct 23 2022 :  15:15:36  Show Profile  Reply
Hi Peter

It is by design that layers cannot become smaller than 1 pixel, so flipping line direction by dragging the bottom above the top grip is not possible (and IMO confusing UI). If it was possible in an older version then it was not by design.

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