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
 Questions about angle layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Oct 24 2022 :  04:36:25  Show Profile  Reply
I create an Angle Layer with this code:

procedure TformMain.mLayerInsertAngleClick(Sender: TObject);
begin
  ImageEnViewPixelEditor.LayersNewLayerDialog(ielkAngle, True);
end;


1. Is it possible to have different colors for the start angle line and for the end angle line? Example:
Start angle line: Green. End angle line: Red. (No political insinuations are intended)
That could be helpful for the end-user.

2. How can I move each angle line with the mouse?

3. How can I rotate the whole angle layer with the mouse? When I click the rotation grip, the angle layer gets deselected.

UPDATE: Question #3 is solved: That was a self-inflicted side-effect from my OnMouseDown routine. Sorry.
Also, question #2 is partly solved: Moving the rotation grip with the mouse now works: It moves the END-ANGLE line. But wouldn't the following be more helpful?:
a) The Rotation Grip rotates the whole Layer
b) The START-ANGLE has its own grip and can be moved with that grip. The grip has the form of a right-pointing hand.
c) The END-ANGLE has its own grip and can be moved with that grip. The grip has the form of a left-pointing hand.
That would allow the user to easily measure the angle of any visual detail in the image, e.g., architectonic or anatomic details.

xequte

38610 Posts

Posted - Oct 24 2022 :  23:03:44  Show Profile  Reply
Hi Peter

At this time separate colors cannot be specified, but we'll consider this for a future version.

You should use the mlEditLayerPoints interaction to edit layer points:

  ImageEnView1.MouseInteractLayers := [mlEditLayerPoints];


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