REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: image?

image?  value

Returns TRUE if it is this type.

Arguments:

value [any-type!]

See also:

to-image  

Description

Returns true if the value is an image! datatype.

This function is often used after the load function to verify that the data is in fact an image. For example:

img: load %test-image.png
if not image? img [alert "Not an image file!"]


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin