C# Class ImageProcessor.Common.Extensions.ImageExtensions

Encapsulates a series of time saving extension methods to the Image class.
Show file Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method Description
Copy ( this source, AnimationProcessMode animationProcessMode, PixelFormat format = PixelFormat.Format32bppPArgb, bool preserveExifData = false ) : Image

Creates a deep copy of an image allowing you to set the pixel format. Disposing of the original is the responsibility of the user. Unlike the native Image.Clone method this also copies animation frames.

Copy ( this source, PixelFormat format = PixelFormat.Format32bppPArgb ) : Image

Creates a deep copy of an image allowing you to set the pixel format. Disposing of the original is the responsibility of the user. Unlike the native Image.Clone method this also copies animation frames.

Method Details

Copy() public static method

Creates a deep copy of an image allowing you to set the pixel format. Disposing of the original is the responsibility of the user. Unlike the native Image.Clone method this also copies animation frames.
public static Copy ( this source, AnimationProcessMode animationProcessMode, PixelFormat format = PixelFormat.Format32bppPArgb, bool preserveExifData = false ) : Image
source this The source image to copy.
animationProcessMode AnimationProcessMode The process mode for frames in animated images.
format PixelFormat The to set the copied image to.
preserveExifData bool Whether to preserve exif metadata. Defaults to false.
return System.Drawing.Image

Copy() public static method

Creates a deep copy of an image allowing you to set the pixel format. Disposing of the original is the responsibility of the user. Unlike the native Image.Clone method this also copies animation frames.
public static Copy ( this source, PixelFormat format = PixelFormat.Format32bppPArgb ) : Image
source this The source image to copy.
format PixelFormat The to set the copied image to.
return System.Drawing.Image