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
 Urgent: Softshadow creating shaded rectangle
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

exodus

Germany
2 Posts

Posted - Feb 07 2013 :  14:29:09  Show Profile  Reply
Hello,
when I create a vector object (line/arrow...) and set softshadow to true, the complete rectangle which is crossed by the vector object slighty changes its color:



How can this be avoided? Can you advise which settings to use for having a shadowed line without a complete rectangle changing its color?
If this is by design, is there an update to be expected within the next year to solve this (this would be ok as the expected development time for the application is about 12 months)?
I really would appreciate any information on that because a complete project is on hold right now due to this issue. The affected application is mainly used for technical documentations and having lines and arrows with a shadow is a central feature.

Thank you very, very much for helping.

Regards
Sven

fab

1310 Posts

Posted - Feb 10 2013 :  16:29:21  Show Profile  Reply
Hello,
a fix will be available very shortly.
Go to Top of Page

fab

1310 Posts

Posted - Feb 11 2013 :  00:14:11  Show Profile  Reply
Hello,
a workaround is to avoid to use gdi+, setting:

iegUseGDIPlus := false;

Instead, to fix it open ievect.pas and locate TImageEnVect.DrawObjects procedure. Just before the "second" instance of this row...

fCacheBitmap.AlphaChannel.Fill(0);

...insert below code:

SetStretchBltMode(fCacheBitmap.AlphaChannel.VclBitmap.Canvas.Handle, HALFTONE);

An official fix will be available from next minor version.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: