Table of Contents

Class PdfSoftMask

Namespace
PdfEngine.Vector
Assembly
PdfEngine.Abstractions.dll

A soft mask (ISO 32000-2 11.6.5.2): the mask group's content, recorded as its own display list in the user space in effect when the ExtGState was set, plus how its values become alpha.

public sealed record PdfSoftMask : IEquatable<PdfSoftMask>
Inheritance
PdfSoftMask
Implements
Inherited Members

Constructors

PdfSoftMask(bool, IPdfDisplayList, PdfMatrix, PdfColor, IReadOnlyList<float>?)

A soft mask (ISO 32000-2 11.6.5.2): the mask group's content, recorded as its own display list in the user space in effect when the ExtGState was set, plus how its values become alpha.

public PdfSoftMask(bool Luminosity, IPdfDisplayList Content, PdfMatrix MaskToPage, PdfColor Backdrop, IReadOnlyList<float>? Transfer = null)

Parameters

Luminosity bool

True: mask = luminosity of the group over Backdrop; false: mask = group alpha.

Content IPdfDisplayList

Mask group content; coordinates map to page space through MaskToPage.

MaskToPage PdfMatrix
Backdrop PdfColor
Transfer IReadOnlyList<float>

Optional /TR transfer function sampled at 256 points (0..1), applied to mask values.

Properties

Backdrop

public PdfColor Backdrop { get; init; }

Property Value

PdfColor

Content

Mask group content; coordinates map to page space through MaskToPage.

public IPdfDisplayList Content { get; init; }

Property Value

IPdfDisplayList

Luminosity

True: mask = luminosity of the group over Backdrop; false: mask = group alpha.

public bool Luminosity { get; init; }

Property Value

bool

MaskToPage

public PdfMatrix MaskToPage { get; init; }

Property Value

PdfMatrix

Transfer

Optional /TR transfer function sampled at 256 points (0..1), applied to mask values.

public IReadOnlyList<float>? Transfer { get; init; }

Property Value

IReadOnlyList<float>