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
 LayersRotateAll is displacing layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Mar 27 2021 :  08:17:26  Show Profile  Reply
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

xequte

38196 Posts

Posted - Mar 27 2021 :  14:48:31  Show Profile  Reply
Please email me this file so I can check it here.


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

yogiyang

India
725 Posts

Posted - Mar 31 2021 :  09:06:51  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: