MaskTransform Class

Represents a base class for all transforms which can be applied with mask.

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

Syntax

C#
public abstract class MaskTransform : Transform

Remarks

All the transforms inherited from this class do not modify neither pixel format of the bitmap, nor its dimensions. It means that these transforms can be applied directly in-place (without creating bitmap copy).

Another interesting feature of this class descendants is the ability to apply the effect with specified mask. Mask is a grayscale image of the same size as a target bitmap which defines "region of interest" (ROI) in raster form. Black pixels on this mask are treated as transparent and effect is applied for appropriate pixels on target bitmap. White pixels are opaque and original pixels are copied to the target bitmap. Mask can be compared with a following sequense of actions:

  1. Effect is applied on copy of the original image.
  2. Mask bitmap replaces alpha channel in modified image.
  3. This image is alpha-blended with original image.

To apply transform with mask, you should useApplyMaskTransform(Bitmap, Bitmap) method.

Inheritance Hierarchy

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference

Manual