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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public static bool IsGray(
PixelFormat pf
)
Public Shared Function IsGray (
pf As PixelFormat
) As Boolean
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