Devesprit.ImageProcessor & Devesprit.ImageServer
Format

Description:

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

Method Declaration
Copy Code
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

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").Format(new BitmapFormat());