Click or drag to resize

PixelFormatUtilitiesHasAlpha 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)
Syntax
public static bool HasAlpha(
	PixelFormat pf
)

Parameters

pf
Type: Atalasoft.ImagingPixelFormat
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