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
 LayersRotateAll is displacing layers

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
yogiyang Posted - Mar 27 2021 : 08:17:26
Hello,

We found that when we call LayersRotateAll it is rotating all layers but displacing them also.

I am using following code:

if ieViewMain.LayersCount > 1 then
    ieViewMain.LayersRotateAll(-90, False, True);

  ieViewMain.Layers[0].Bitmap.Rotate(-90);


I am also attaching two screen shots showing the problem.

Original Image



Rotated Image (using code given above)


is there any way to correct this problem or am I making any mistake?

TIA

Yogi Yang
2   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Mar 31 2021 : 09:06:51
Hello Nigel,

Actually this is just a JPEG file in which I have selected a region and the create new layer from selection.

Then I desurated this layer.

Doing this makes it easy to see the problem.

And finally I rotated all layers.

I am attaching this file here.

TIA



Yogi Yang
xequte Posted - Mar 27 2021 : 14:48:31
Please email me this file so I can check it here.


Nigel
Xequte Software
www.imageen.com