REBOL Document

Image? - Function Summary


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


<Back | Index | Next>

Copyright 2004 REBOL Technologies