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

PerChannelBitmapTransform.ApplyMaskTransform Method (BitmapData, Bitmap, Bitmap)

Produces bitmap which contains transformed copy of given bitmap data (which remains unchanged) using specified mask.

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

Syntax

Visual Basic
Public Overrides Sub ApplyMaskTransform ( _
	source As BitmapData, _
	mask As Bitmap, _
	destination As Bitmap _
)
C#
public override void ApplyMaskTransform(
	BitmapData source,
	Bitmap mask,
	Bitmap destination
)

Parameters

source

Type: Aurigma.GraphicsMill.BitmapData

Input BitmapData. It is not modified with the transform algorithm.
mask

Type: Aurigma.GraphicsMill.Bitmap

Bitmap which defines mask. Mask should be 8-bit grayscale bitmap (its pixel format is Format8bppGrayScale) of the same dimensions as original image.
destination

Type: Aurigma.GraphicsMill.Bitmap

Output Bitmap. It should be instantiated before passing to this method. After transform algorithm completes, all data loaded to this bitmap is discarded and result is copied here.

See Also

Reference