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

MaskedBitmapTransform.ApplyMaskTransform Method (Bitmap, Bitmap, Bitmap)

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

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

Syntax

Visual Basic
Public Overridable Sub ApplyMaskTransform ( _
	source As Bitmap, _
	mask As Bitmap, _
	destination As Bitmap _
)
C#
public virtual void ApplyMaskTransform(
	Bitmap source,
	Bitmap mask,
	Bitmap destination
)

Parameters

source

Type: Aurigma.GraphicsMill.Bitmap

Input Bitmap. 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