Set the color that will act as the transparent color.

Namespace: TallComponents.PDF.Layout.Shapes
Assembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0

Syntax

C#
public Color MaskColor { get; set; }
Visual Basic
Public Property MaskColor As Color
	Get
	Set

Remarks

Setting this color to any other color than nullNothingnullptra null reference (Nothing in Visual Basic) will enable color masking. The color that matches this color exactly will become transparent.

When the mask color is set, alpha transparency is ignored.

For GIF images, the mask color can be specified in the file. Setting the MaskColor will override the transparent color in the GIF file.

Color masking for images with lossy compression (JPEG) is not advised.

See Also