IMAGE?

REBOL Dictionary 2.0


Summary:

Returns TRUE for image values.

Usage:

image? value

Arguments:

value - The value argument. (must be: any-type)

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!"]

Related:

to-image - Converts to image value.


<Back | Index | Next>

Copyright 2003 REBOL Technologies