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
 ImageEn Resize
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kowal

Poland
38 Posts

Posted - May 14 2023 :  16:34:53  Show Profile  Reply
I'd like to resize imageEnView object using mouse interaction like the interaction for rotate operation (MouseInteractGeneral miRotateTool).
How can I do it?
S. Kowalski

xequte

38613 Posts

Posted - May 14 2023 :  19:13:15  Show Profile  Reply
Hi

There is not a tool to do that, but if you treat it as an image Layer (MouseInteractLayers=[mlResizeLayers]) then you can size it (just ensure that ImageEnView.Layers[0].Locked = False).

http://www.imageen.com/help/TIEMouseInteractLayers.html
http://www.imageen.com/help/TIELayer.Locked.html



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kowal

Poland
38 Posts

Posted - May 15 2023 :  08:23:22  Show Profile  Reply
thanks for the advice.
In my project the MouseInteractLayers=[mlResizeLayers] works ok, but MouseInteractLayers=[mlRotateLayers] doesn't.
So when I need to rotate the bitmap I use MouseInteractGeneral miRotateTool and it is ok.
I have one more question.
How can I get in my Delphi code the Angle I have rotated the image?
I want to write this angle in the database.
Go to Top of Page

kowal

Poland
38 Posts

Posted - May 15 2023 :  13:46:12  Show Profile  Reply
sorry for asking - I've found it in demo project
it is .RotateTool.Rotation
thanks
Go to Top of Page

xequte

38613 Posts

Posted - May 15 2023 :  22:40:11  Show Profile  Reply
Hi

Yes, that is the one.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kowal

Poland
38 Posts

Posted - May 16 2023 :  04:44:28  Show Profile  Reply
Hi
but it's not so easy with Resize
This is what I want do do:
I try to resize (and rotate) TBitmap using ImageEnView component.
The source and resulting object for me is TBitmap
it looks like this

imageen.Bitmap.Assign(myBitmap);
...
changes size, angle in imageen.view
...
myBitmap.Assign(imageen.Bitmap)

myBitmap has the imageen rotation angle.
but it has not the resized height and width

S.Kowalski









Go to Top of Page

xequte

38613 Posts

Posted - May 16 2023 :  15:48:20  Show Profile  Reply
Hi

When you resize layers, it does not size the underlying image (by default). In case they are need to be sized again later. You need to enact the sizing:

http://www.imageen.com/help/TImageEnView.LayersFixSizes.html

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