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
 ImageEn Resize

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
kowal Posted - May 14 2023 : 16:34:53
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
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 16 2023 : 15:48:20
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
kowal Posted - May 16 2023 : 04:44:28
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









xequte Posted - May 15 2023 : 22:40:11
Hi

Yes, that is the one.

Nigel
Xequte Software
www.imageen.com
kowal Posted - May 15 2023 : 13:46:12
sorry for asking - I've found it in demo project
it is .RotateTool.Rotation
thanks
kowal Posted - May 15 2023 : 08:23:22
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.
xequte Posted - May 14 2023 : 19:13:15
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