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
 Urgent: Softshadow creating shaded rectangle

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
exodus Posted - Feb 07 2013 : 14:29:09
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
2   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Feb 11 2013 : 00:14:11
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.
fab Posted - Feb 10 2013 : 16:29:21
Hello,
a fix will be available very shortly.