Removes alpha channel from the current bitmap. Alpha channel is flattened using specified color (i.e. each pixel is alpha-blended with this color).

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

Syntax

Visual Basic

Public Sub DiscardAlpha ( _
	backgroundColor As Color _
)

C#

public void DiscardAlpha(
	Color backgroundColor
)

Parameters

backgroundColor

Type: Aurigma.GraphicsMill..::.Color

Color value specifying a color to blend semi-transparent areas with.

Remarks

If you do not want to flatten the alpha channel, use another overloaded version of this method without arguments.