Convert bitmap with 16 bits per plane to a bitmap with 8 bits per plane.

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

Syntax

C#
public static Bitmap Convert16bppTo8bpp(
	Bitmap bimap
)

Parameters

bimap
Type: System.Drawing..::.Bitmap
Source image to convert.

Return Value

Returns new image which is a copy of the source image but with 8 bits per plane.

Remarks

The routine does the next pixel format conversions:

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionInvalid pixel format of the source image.

See Also