SetAlpha Class

Sets the alpha channel to an image.

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

Syntax

C#
public sealed class SetAlpha : MaskTransform

Examples

C#
using (var alpha = new SetAlpha())
{
    alpha.AlphaSource = ImageReader.Create(@"Images\alpha.png");
    alpha.AutoDisposeAlphaSource = true;

    Pipeline.Run(@"Images\in.jpg" + alpha + @"Images\Output\out.png");
}

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