AtalaImagePixelFormatHasAlpha Method |
Note: This API is now obsolete.
Returns true if the specified PixelFormat 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)
Syntax [ObsoleteAttribute("Please use PixelFormatUtilities.HasAlpha")]
public static bool PixelFormatHasAlpha(
PixelFormat pixelFormat
)
<ObsoleteAttribute("Please use PixelFormatUtilities.HasAlpha")>
Public Shared Function PixelFormatHasAlpha (
pixelFormat As PixelFormat
) As Boolean
Parameters
- pixelFormat
- Type: Atalasoft.ImagingPixelFormat
The PixelFormat to use when determining if there is an alpha channel.
Return Value
Type:
BooleanTrue if this AtalaImage contains an alpha channel.
Remarks If this image is colormapped, the palette might contain an alpha value less than 255. If so the mapped
pixel value will contain alpha even though this function returns false. Check if the palette has alpha to be
sure.
See Also