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
 Layers Rotate

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
giannidipie Posted - Feb 08 2012 : 09:58:59
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.

6   L A T E S T    R E P L I E S    (Newest First)
giannidipie Posted - Feb 09 2012 : 04:52:17
very fast response. now works correctly!
thank you
fab Posted - Feb 09 2012 : 01:54:54
Thank you, now I can replicate. Please send a private email to the support to get an updated version for tests.
giannidipie Posted - Feb 09 2012 : 01:02:23
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;
fab Posted - Feb 08 2012 : 23:31:50
Please could you show the code you have in "Rotate + 90" button?
I cannot replicate this problem.
giannidipie Posted - Feb 08 2012 : 12:44:51
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.

fab Posted - Feb 08 2012 : 11:07:58
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: