ImageLoader.save

Saves the image data in this ImageLoader to a file with the specified name. 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 filename the name of the file to write the images to @param format the format to write the images in

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the file name is null</li> </ul> @exception SWTException <ul> <li>ERROR_IO - if an IO error occurs while writing to the file</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)
  2. void save(String filename, int format)
    class ImageLoader
    void
    save
    (
    String filename
    ,
    int format
    )

Meta