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 print transparent text to printer?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

adisonx

Thailand
29 Posts

Posted - Aug 18 2016 :  01:33:28  Show Profile  Reply
Please guide me.
I want to print image with transparent text ,and the text font blend with backgroud image to printer.
My Code is :
ImageEnIO->PrintImage(Printer()->Canvas, 0, 0, 0, 0, ievpTop, iehpLeft,
iesFillPage, 0, 0, 1);

....
....
Printer()->Canvas->Font->Name = "Tahoma";
Printer()->Canvas->Font->Size = 8;
Printer()->Canvas->Font->Color = clBlack;
Printer()->Canvas->TextOut(HeaderTextX, HeaderTextY, "Hello");

Thank you for your comments.

xequte

38611 Posts

Posted - Aug 18 2016 :  02:26:43  Show Profile  Reply
Hi

You should probably use a TImageEnView and create your text as a layer:

http://www.imageen.com/help/TImageEnView.LayersCreateFromText.html

Then set the layer transparency:

ImageEnView.Layers[0].Transparency := 50;

Finally merge the layers to the background:

http://www.imageen.com/help/TImageEnView.LayersMergeAll.html

And print.



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