|
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
)
Public Shared Function CreateGrayscaleImage (
width As Integer,
height As Integer
) As Bitmap
Request Example
View SourceParameters
- width
- Type: SystemInt32
Image width. - height
- Type: SystemInt32
Image height.
Return Value
Type:
BitmapReturns 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