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
 Layers Rotate
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

giannidipie

11 Posts

Posted - Feb 08 2012 :  09:58:59  Show Profile  Reply
Load a pgn file into a layer.
Then apply to that layer Rotate := 90, or 180, or 270.
You will see the alpha channel corrupted.

fab

1310 Posts

Posted - Feb 08 2012 :  11:07:58  Show Profile  Reply
It doesn't seem in my test. In the "Rotate+90" button I have:

ImageEnView1.Proc.Rotate(90);

And even this works:

ImageEnView1.CurrentLayer.Rotate := 90;
ImageEnView1.LayersFixRotations();


After rotation:
Go to Top of Page

giannidipie

11 Posts

Posted - Feb 08 2012 :  12:44:51  Show Profile  Reply
At this moment i prefer to increase angle of 1/1000 ( rotate := 90.001) without using LayersFixRotations.

It is possible to fix the problem, I don't like what LayersFixRotations do to the bitmap.

Go to Top of Page

fab

1310 Posts

Posted - Feb 08 2012 :  23:31:50  Show Profile  Reply
Please could you show the code you have in "Rotate + 90" button?
I cannot replicate this problem.
Go to Top of Page

giannidipie

11 Posts

Posted - Feb 09 2012 :  01:02:23  Show Profile  Reply
I have this code: then apply 3,4 times.....

ImageEnView1.CurrentLayer.Rotate := ImageEnView1.CurrentLayer.Rotate + 45;
ImageEnView1.LayersFixRotations();
//ImageEnView1.Update;

try to use this piece of code where the problem is the corruption of alpha channel at 90°, 180°, 270°
ImageEnView1.CurrentLayer.Rotate := ImageEnView1.CurrentLayer.Rotate + 45 ;
//ImageEnView1.LayersFixRotations();
ImageEnView1.Update;
Go to Top of Page

fab

1310 Posts

Posted - Feb 09 2012 :  01:54:54  Show Profile  Reply
Thank you, now I can replicate. Please send a private email to the support to get an updated version for tests.
Go to Top of Page

giannidipie

11 Posts

Posted - Feb 09 2012 :  04:52:17  Show Profile  Reply
very fast response. now works correctly!
thank you
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: