This documentation is for the old version. Go to the latest Graphics Mill docs

ChannelsProvider.AddAlpha Method (Bitmap)

Appends bitmap alpha channel to current bitmap.

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

Syntax

Visual Basic
Public Sub AddAlpha ( _
	alpha As Bitmap _
)
C#
public void AddAlpha(
	Bitmap alpha
)

Parameters

alpha

Type: Aurigma.GraphicsMill.Bitmap

Grayscale bitmap to initialize alpha channel with. Valid bitmaps 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.

See Also

Reference