Click or drag to resize
Accord.NET (logo)

ImageCreateGrayscaleImage Method

Create and initialize new 8 bpp grayscale image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static Bitmap CreateGrayscaleImage(
	int width,
	int height
)
Request Example View Source

Parameters

width
Type: SystemInt32
Image width.
height
Type: SystemInt32
Image height.

Return Value

Type: Bitmap
Returns the created grayscale image.
Remarks
The method creates new 8 bpp grayscale image and initializes its palette. Grayscale image is represented as Format8bppIndexed image with palette initialized to 256 gradients of gray color.
See Also