PixelFormatUtilities.HasAlpha Method |
Returns true if the pixel format contains an alpha channel
Namespace:
Atalasoft.Imaging
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntaxpublic static bool HasAlpha(
PixelFormat pf
)
Public Shared Function HasAlpha (
pf As PixelFormat
) As Boolean
Parameters
- pf
- Type: Atalasoft.Imaging.PixelFormat
An input PixelFormat
Return Value
Type:
Boolean
Remarks This will return false for color mapped pixel formats since it is impossible to know from the pixel format
value alone if the colors have any alpha values.
See Also