Table of Contents

Class PdfFunctionShading

Namespace
PdfEngine.Vector
Assembly
PdfEngine.Abstractions.dll

Type 1 function-based shading (ISO 32000-2 8.7.4.5.2): colour = f(x, y) over Domain in shading space, mapped to the current user space by Matrix. Evaluate returns the RGB colour (alpha 0 outside the domain).

public sealed record PdfFunctionShading : PdfShading, IEquatable<PdfShading>, IEquatable<PdfFunctionShading>
Inheritance
PdfFunctionShading
Implements
Inherited Members

Constructors

PdfFunctionShading(PdfRect, PdfMatrix, Func<double, double, PdfColor>)

Type 1 function-based shading (ISO 32000-2 8.7.4.5.2): colour = f(x, y) over Domain in shading space, mapped to the current user space by Matrix. Evaluate returns the RGB colour (alpha 0 outside the domain).

public PdfFunctionShading(PdfRect Domain, PdfMatrix Matrix, Func<double, double, PdfColor> Evaluate)

Parameters

Domain PdfRect
Matrix PdfMatrix
Evaluate Func<double, double, PdfColor>

Properties

Domain

public PdfRect Domain { get; init; }

Property Value

PdfRect

Evaluate

public Func<double, double, PdfColor> Evaluate { get; init; }

Property Value

Func<double, double, PdfColor>

Matrix

public PdfMatrix Matrix { get; init; }

Property Value

PdfMatrix