Skip to content

TallComponents.UnoPdf.Client

TallComponents.UnoPdf.Client.Models.Pdf.Shapes.ImageShapeModel

ImageShapeModel.MaskColor Property

Set the color that will act as the transparent color.

csharp
public TallComponents.UnoPdf.Client.Models.Pdf.RgbColorModel MaskColor { get; set; }

Property Value

RgbColorModel

Remarks

Setting this color to any other color than null 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.