Skip to content

PDFColorMask

Namespace: O2S.Components.PDF4NET.Graphics

Defines a color mask.

public class PDFColorMask : PDFImageMask

Inheritance ObjectPDFImageMaskPDFColorMask

Remarks

A color mask specifies a range of colors to be masked out.

Constructors

PDFColorMask()

Initializes a new PDFColorMask object.

public PDFColorMask()

PDFColorMask(PDFColor, PDFColor)

Initializes a new PDFColorMask object.

public PDFColorMask(PDFColor startColor, PDFColor endColor)

Parameters

startColor PDFColor
The start of the colors range to be masked out.

endColor PDFColor
The start of the colors range to be masked out.

Remarks

Both colors must have the same colorspace that also must match the image's colorspace.


Properties

EndColor

Gets or sets the end of the colors range.

public PDFColor EndColor { get; set; }

Property Value

PDFColor
A PDFColor that represents the end of the colors range.

Remarks

The PDFColorMask.StartColor.ColorSpace must match the EndColor.ColorSpace and also the image's ColorSpace.


StartColor

Gets or sets the start of the colors range.

public PDFColor StartColor { get; set; }

Property Value

PDFColor
A PDFColor that represents the start of the colors range.

Remarks

The StartColor.ColorSpace must match the PDFColorMask.EndColor.ColorSpace and also the image's ColorSpace.