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
 isempty

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
pierrotsc Posted - Jan 17 2019 : 13:58:42
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 ...
2   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Jan 17 2019 : 15:52:38
Got it..thank you..
xequte Posted - Jan 17 2019 : 15:14:09
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