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
 TImageEnProc.AddInnerShadow
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Nov 24 2011 :  16:28:24  Show Profile  Reply
Hello,
if I use AddInnerShadow with the attitudes see picture below.
Is the left low and the corner right above then, represented not correctly.
Why is that so?


86.72 KB

Klaus

fab

1310 Posts

Posted - Nov 25 2011 :  02:09:01  Show Profile  Reply
Hello,
this is a bug in AddInnerShadow when OffsetX or OffsetY are not 0. I just fixed it, thank you!

The fix:

- open ImageEnProc.pas
- locate _IEAddInnerShadow function
- replace this...
tmpalpha.MoveRegion(0, 0, bitmap.Width - 1, bitmap.Height - 1, offsetx, offsety, 0);
...with...
tmpalpha.MoveRegion(0, 0, tmpalpha.Width - 1, tmpalpha.Height - 1, offsetx, offsety, 0);
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Nov 26 2011 :  04:07:03  Show Profile  Reply
Hello Fabrizio,
now it works fine.
tks


Klaus
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: