Table of Contents

Struct Shadow

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.dll

A soft shadow cast by a frame onto what lies beneath it, as a drop shadow in a layout application or a box shadow in CSS.

public readonly record struct Shadow : IEquatable<Shadow>
Implements
Inherited Members

Constructors

Shadow(Ink, float, Offset, float)

A soft shadow cast by a frame onto what lies beneath it, as a drop shadow in a layout application or a box shadow in CSS.

public Shadow(Ink Ink, float Blur, Offset Offset = default, float Spread = 0)

Parameters

Ink Ink

The shadow's colour and opacity.

Blur float

How far the shadow's edge fades, in points: its blur radius, twice the deviation of the Gaussian that softens it. Zero leaves a sharp edge.

Offset Offset

How far the shadow falls from the frame: right and down for positive values.

Spread float

How much larger than the frame the shadow is on every side; negative makes it smaller.

Properties

Blur

How far the shadow's edge fades, in points: its blur radius, twice the deviation of the Gaussian that softens it. Zero leaves a sharp edge.

public float Blur { get; init; }

Property Value

float

Ink

The shadow's colour and opacity.

public Ink Ink { get; init; }

Property Value

Ink

Offset

How far the shadow falls from the frame: right and down for positive values.

public Offset Offset { get; init; }

Property Value

Offset

Spread

How much larger than the frame the shadow is on every side; negative makes it smaller.

public float Spread { get; init; }

Property Value

float