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
 How to Add a transparent textlayer?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

supersk

99 Posts

Posted - Oct 15 2019 :  05:01:36  Show Profile  Reply
How to Add a transparent textlayer like Text1 in the following pic


xequte

38608 Posts

Posted - Oct 15 2019 :  17:00:54  Show Profile  Reply
Hi

As long as the text layer is not formatted, you can set FillColor to clNone:

https://www.imageen.com/help/TIETextLayer.FillColor.html



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

supersk

99 Posts

Posted - Oct 16 2019 :  03:37:10  Show Profile  Reply
set FillColor to clNone. You will get different result.
Using “ADD 1” you will get transparent backgroud, but using “ADD 2” you will get white backgroud. Why? The code as follow.


attach/supersk/201910163376_LineErr.zip
9.74 KB
Go to Top of Page

xequte

38608 Posts

Posted - Oct 16 2019 :  15:02:22  Show Profile  Reply
Hi

You have set: EnableFormatting = true;

When Rich Text formatting is enabled, tramsparecy is not possible and the background is always painted.

EnableFormatting is only needed if you are looking to have different formatting within the same text block.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: