PDFColorMask¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines a color mask.
Inheritance Object → PDFImageMask → PDFColorMask
Remarks
A color mask specifies a range of colors to be masked out.
Constructors¶
PDFColorMask()¶
Initializes a new PDFColorMask object.
PDFColorMask(PDFColor, PDFColor)¶
Initializes a new PDFColorMask object.
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.
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.
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.