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.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static bool HasAlpha(
	PixelFormat pf
)

Parameters

pf
Type: Atalasoft.ImagingPixelFormat
An input PixelFormat

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Atalasoft.Imaging.PixelFormatUtilities.HasAlpha(Atalasoft.Imaging.PixelFormat)"]

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