Testing if an image is empty (blank)?

Derek Bump webmaster at dreamscapesoftware.com
Tue Aug 16 11:44:40 EDT 2005


david bovill wrote:
> How do I test to see if an image is empty?

if (the imagePixMapID of img "testImage") is empty then
   answer "Unable to open the selected image." with "OK"
end if


You can also get a little more creative and use QuickTime to determine 
if the file can be opened.  At that point you can go 1 further and 
convert the image to a format that Revolution can understand, and now 
you've given yourself the ability to open all image types that QuickTime 
can support.


Derek Bump
Dreamscape Software
_______________________________________________
Compress Photos for the Web with JPEGCompress
http://www.dreamscapesoftware.com/




More information about the use-livecode mailing list