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 text to image in imagenview.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aftereffectniko

Ethiopia
23 Posts

Posted - Apr 26 2014 :  21:18:09  Show Profile  Reply
Hi . How can i add text to image . . .by selecting color and font. In imagenview?

xequte

39436 Posts

Posted - Apr 26 2014 :  21:56:59  Show Profile  Reply
Hi

You can use ImageEnView1.Proc.TextOut:

ImageEnView1.Proc.TextOut(Align_Text_Horz_Center, 
                          Align_Text_Near_Bottom, 
                          ExtractFileName(ImageEnView1.IO.Params.Filename), 
                          'Arial', 32, clRed, [fsBold]);
ImageEnView1.Update;


See other examples at:

http://www.imageen.com/help/TImageEnProc.TextOut.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Guido Cavalera

Italy
9 Posts

Posted - May 27 2026 :  10:19:28  Show Profile  Reply
and if i want to have a black background ... how make it ?
Go to Top of Page

xequte

39436 Posts

Posted - May 27 2026 :  23:04:56  Show Profile  Reply
Hi

Just draw a rect to the ImageEnView1.IEBitmap.IECanvas:

http://www.imageen.com/help/TIECanvas.Rectangle.html

or use (more complex):

http://www.imageen.com/help/TIECanvas.AdvancedDrawText.html



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