Format an image.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
[ObsoleteAttribute("Use Clone(Bitmap, PixelFormat) method instead and specify desired pixel format")] public static void FormatImage( ref Bitmap image ) |
Parameters
- image
- Type:
System.Drawing..::.Bitmap
%
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.