Property MaskColor

Namespace TallComponents.PDF.Shapes
Class ImageShape

Set the color that will act as the transparent color.

Setting this color to any other color than

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.

Syntax

public  Color  MaskColor  {  get;  set;  }

Property value

Color