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
 How to print transparent text to printer?

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
adisonx Posted - Aug 18 2016 : 01:33:28
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.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 18 2016 : 02:26:43
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