ChannelsProvider.SetAlpha Method (Bitmap)

Sets the specified Bitmap as the alpha channel to the current bitmap.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void SetAlpha(
	Bitmap alpha
)

Parameters

alpha

Type: Aurigma.GraphicsMill..Bitmap

A grayscale Bitmap to initialize alpha channel with. The bitmap should have the same dimensions and color depth as the current bitmap.

Remarks

If alpha channel is already presented in the bitmap, this method will throw an exception. To check if alpha channel is available, use HasAlpha property of the Bitmap class.

See Also

Reference