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
 Change the image canvas by dragging handles?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

982 Posts

Posted - Sep 10 2017 :  09:59:06  Show Profile  Reply
Hello!

I would like my image to display handles on its edges, for example:



Then when I drag on one of these handles, the CANVAS (not the image) is resized accordingly.

Is this possible?

w2m

USA
1990 Posts

Posted - Sep 10 2017 :  11:08:13  Show Profile  Reply
Yes. Add a layer - layer 1 and load the image into the layer. I think it's difficult to do with layer 0. Handles will be on the layer border so the layer can be adjusted.

See my post here: https://www.imageen.com/ieforum/topic.asp?whichpage=0.55&TOPIC_ID=1025#11740

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

39053 Posts

Posted - Sep 10 2017 :  19:28:08  Show Profile  Reply
Hi Peter

It is not obvious, but Layer 0 can actually made selectable:

  // Make background layer selectable and sizeable
  ImageEnView1.Layers[0].VisibleBox := True;
  ImageEnView1.Layers[0].Selectable := True;
  ImageEnView1.Layers[0].Locked     := False;
  ImageEnView1.Update();


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