Click or drag to resize

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: (.NET 4.5.2, x86)
[ObsoleteAttribute("Please use PixelFormatUtilities.HasAlpha")]
public static bool PixelFormatHasAlpha(
	PixelFormat pixelFormat


Type: Atalasoft.ImagingPixelFormat
The PixelFormat to use when determining if there is an alpha channel.

Return Value

Type: Boolean
True if this AtalaImage contains an alpha channel.
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