How to test if an image is empty?
Scott Rossi
scott at tactilemedia.com
Mon Jul 11 05:48:24 EDT 2011
Recently, Tiemo Hollmann TB wrote:
> when I put empty into img "foo" the imagedata of img "foo" is still not
> empty, there are still any binary data in the image.
>
> I can't test if the imagedata of img "foo" is empty" nor can I test if the
> img "foo" is empty. How can I test if I have put empty into an image? Can I
> test it binary?
To "truly" empty an image, I set the text property of the image to empty,
and also check that property to make sure it's empty.
return (the text of img 1 is empty)
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
More information about the use-livecode
mailing list