ImageLoader.save

Saves the image data in this ImageLoader to the specified stream. The format parameter can have one of the following values: <dl> <dt><code>IMAGE_BMP</code></dt> <dd>Windows BMP file format, no compression</dd> <dt><code>IMAGE_BMP_RLE</code></dt> <dd>Windows BMP file format, RLE compression if appropriate</dd> <dt><code>IMAGE_GIF</code></dt> <dd>GIF file format</dd> <dt><code>IMAGE_ICO</code></dt> <dd>Windows ICO file format</dd> <dt><code>IMAGE_JPEG</code></dt> <dd>JPEG file format</dd> <dt><code>IMAGE_PNG</code></dt> <dd>PNG file format</dd> </dl>

@param stream the output stream to write the images to @param format the format to write the images in

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the stream is null</li> </ul> @exception SWTException <ul> <li>ERROR_IO - if an IO error occurs while writing to the stream</li> <li>ERROR_INVALID_IMAGE - if the image data contains invalid data</li> <li>ERROR_UNSUPPORTED_FORMAT - if the image data cannot be saved to the requested format</li> </ul>

  1. void save(OutputStream stream, int format)
    class ImageLoader
    void
    save
    (
    OutputStream stream
    ,
    int format
    )
  2. void save(String filename, int format)

Meta