Format

Sets the output format of the current image to the matching ImageProcessor.Imaging.Formats.ISupportedImageFormat.

public ImageFactory Format(ISupportedImageFormat format)
    

Parameters

format
The ImageProcessor.Imaging.Formats.ISupportedImageFormat to set the image to.

Core formats are:

  • BitmapFormat
  • JpegFormat
  • GifFormat
  • PngFormat
  • TiffFormat

Examples

Original

original image

Gif

image saved in gif format

Png8

image saved in png8 format