PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

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

Download PDFKit.NET 4.0
We will send you a download link
  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.