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
 TIETextLayer crashed when you assign a font size

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
AlexVaso Posted - Sep 13 2019 : 04:05:09
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.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 16 2019 : 17:08:38
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
AlexVaso Posted - Sep 16 2019 : 02:27:37
I am using the 32 bit 8.5.0 version of ImageEn.
xequte Posted - Sep 15 2019 : 17:34:00
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