Click or drag to resize

PixelFormatUtilitiesIsGray Method

Indicates whether or not the pixel format represents a gray image.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static bool IsGray(
	PixelFormat pf
)

Parameters

pf
Type: Atalasoft.ImagingPixelFormat
An input PixelFormat

Return Value

Type: Boolean
Returns true if the image format is gray, false otherwise.
Remarks
1 bit per pixel images are not considered gray since it is impossible to tell without a color map.
See Also