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
 Move/Resize vectorial object on non-top layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

akempf

Germany
3 Posts

Posted - Mar 13 2014 :  04:19:41  Show Profile  Reply
Hi,

I am using a TImageEnVect component with three layers:
0 - a bitmap image
1 - rectangle objects to specify a region (ROI)
2 - vectorial objects (results of image processing)

The user should be able to move/resize the objects on layer 1. But it seems that only objects on the topmost layer are selectable by mouse.
Is there a way to allow users to move/resize objects on some non-top layer?
Or is the only solution to bring the layer to the front?

- Alexander

www.k-software.de

w2m

USA
1990 Posts

Posted - Mar 13 2014 :  10:54:17  Show Profile  Reply
There are two properties that control how objects are created with respect to layers. ObjAnchorToLayers and ObjLayer.

TImageEnVect.ObjAnchorToLayers

Declaration
property ObjAnchorToLayers:boolean;

Description
When true (default), all objects are anchored to a layer (using ObjLayer property). Otherwise (the old behavior) objects are just painted over all layers.


TImageEnVect.ObjLayer

Declaration
property ObjLayer[hobj:integer]:integer;

Description
Specifies layer index where the object is located (drawn and referenced). Default is "0" and means draw on layer 0.

To select an object on any layer set ObjAnchorToLayers := False.

If ObjAnchorToLayers is true (default) and you set the ObjLayer when you create the object the object will be constrained to the layer and can only be selected when the layer is selected.
ImageEnVect1.ObjLayer[ihObj] := ImageEnVect1.LayersCurrent;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Custom ImageEn Development
Go to Top of Page

akempf

Germany
3 Posts

Posted - Mar 20 2014 :  09:18:17  Show Profile  Reply
Thanks for your explanations, William.

I had no chance to try it but will do and let you know if that solved the problem.

- Alexander

www.k-software.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: