Click or drag to resize
Accord.NET (logo)

ImageFormatImage Method

Note: This API is now obsolete.

Format an image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
[ObsoleteAttribute("Use Clone(Bitmap, PixelFormat) method instead and specify desired pixel format")]
public static void FormatImage(
	ref Bitmap image
)
Request Example View Source

Parameters

image
Type: System.DrawingBitmap
Source image to format.
Remarks

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 Note
The method is deprecated and Clone(Bitmap, PixelFormat) method should be used instead with specifying desired pixel format.

See Also