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
 isempty
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Jan 17 2019 :  13:58:42  Show Profile  Reply
I encountered an issue so i tried to duplicate it with the layers demo.
I added a button with this command
if imageenview1.isempty then showmessage('empty');

when i start the program and click the button, i get the error.
now if i add a shape layer, i still get the error. But my imageenview1 is not empty anymore ...

xequte

38615 Posts

Posted - Jan 17 2019 :  15:14:09  Show Profile  Reply
Hi

Please see the documentation for IsEmpty. It is only checking whether the current image (of current layer) has a size > 2x2.

https://www.imageen.com/help/TImageEnView.IsEmpty.html

You should also check whether LayersCount > 1.


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

pierrotsc

USA
497 Posts

Posted - Jan 17 2019 :  15:52:38  Show Profile  Reply
Got it..thank you..
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: