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
 TIETextLayer crashed when you assign a font size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AlexVaso

Ukraine
4 Posts

Posted - Sep 13 2019 :  04:05:09  Show Profile  Reply
I work in Embarcadero C++.
I create a new layer TIETextLayer with the command ImageEnView1->LayersAdd(ielkText). When I try to change the font size, the program crashes by exception.
TIETextLayer* ll = static_cast<TIETextLayer*>(ImageEnView1->CurrentLayer);
if(ll)
ll->Font->Size = 22;
When I do this in Delphi then everything works fine.

xequte

38613 Posts

Posted - Sep 15 2019 :  17:34:00  Show Profile  Reply
Hi

It works fine when I test it here. What version of C++ and ImageEn are you using? 32 or 64bit?

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  ImageEnView1->IO->LoadFromFile( "D:\\masschair4.jpg" );
  ImageEnView1->LayersAdd(ielkText);

  TIETextLayer* ll = static_cast<TIETextLayer*>(ImageEnView1->CurrentLayer);
  if(ll)
	ll->Font->Size = 22;

  ImageEnView1->Update();
}


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

AlexVaso

Ukraine
4 Posts

Posted - Sep 16 2019 :  02:27:37  Show Profile  Reply
I am using the 32 bit 8.5.0 version of ImageEn.
Go to Top of Page

xequte

38613 Posts

Posted - Sep 16 2019 :  17:08:38  Show Profile  Reply
Hi Alex

It should be fine in that version too, but you should email us for the latest update.


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