Format an image.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: (


[ObsoleteAttribute("Use Clone(Bitmap, PixelFormat) method instead and specify desired pixel format")]
public static void FormatImage(
	ref Bitmap image


Type: System.Drawing..::.Bitmap %
Source image to format.


Formats the image to one of the formats, which are supported by the AForge.Imaging library. The image is left untouched in the case if it is already of Format24bppRgb or Format32bppRgb or Format32bppArgb or Format48bppRgb or Format64bppArgb format or it is grayscale, otherwise the image is converted to Format24bppRgb format.

Note:The method is deprecated and Clone(Bitmap, PixelFormat) method should be used instead with specifying desired pixel format.

See Also