Represents a base class for all transforms which can be applied with mask.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public abstract class MaskTransform : Transform
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:
To apply transform with mask, you should useApplyMaskTransform(Bitmap, Bitmap) method.