public void setFormat(Format format) {
        if (format == null) {
            throw new IllegalArgumentException("format may not be null.");
        }

        this.format = format;
        setUpdateNeeded();
    }
<code>setFormat</code> sets the image format for this image.

@param format
           the image format (not null)
@throws IllegalArgumentException
            if format is null
@see Format
jme3-core/src/main/java/com/jme3/texture/Image.java