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
 Build error when call TImageEnProc::TextOut
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

adisonx

Thailand
29 Posts

Posted - Jul 20 2015 :  02:11:38  Show Profile  Reply
I want to show text on my image and here is my code:
String text1 = "Test";
String font = "TH Sarabun New";
TFontStyles fs;
fs << fsBold ;
this->ImageEnView->Proc->TextOut(PixelWidth+10,5,text1,font,32,clBlack,fs ,0,True);

Compile just fine ,but when I build the project ,It 's show error :

[ilink32 Error] Error: Unresolved external '__fastcall Imageenproc::TImageEnProc::TextOutW(int, int, System::UnicodeString, System::UnicodeString, int, System::Uitypes::TColor, System::Set<System::Uitypes::TFontStyle, 0, 3>, int, bool)' referenced from C:\USERS\ADISON\DOCUMENTS\EMBARCADERO\STUDIO\PROJECTS\WIN32\DEBUG\IMAGECLIENTMAIN.OBJ

How can I resolve this problem (ImageEn 5.2.0 and XE7).




xequte

38510 Posts

Posted - Jul 20 2015 :  21:07:13  Show Profile  Reply
Hi

I can't see any good reason why that should be occuring, but the TextOut code does not do anything too technical (Basically a Canvas.TextOut) so you might just want to replicate its code by calling ImageEnView1->Canvas->TextOut() instead.


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

adisonx

Thailand
29 Posts

Posted - Jul 21 2015 :  22:19:16  Show Profile  Reply
Thank you. It 's done.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: