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
 Reverse vertical direction of a Line?

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 - Oct 22 2022 : 13:19:02
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?
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 23 2022 : 15:15:36
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
PeterPanino Posted - Oct 22 2022 : 13:54:01
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: