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
InkInkThe shadow's colour and opacity.
BlurfloatHow 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.
OffsetOffsetHow far the shadow falls from the frame: right and down for positive values.
SpreadfloatHow 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
Ink
The shadow's colour and opacity.
public Ink Ink { get; init; }
Property Value
Offset
How far the shadow falls from the frame: right and down for positive values.
public Offset Offset { get; init; }
Property Value
Spread
How much larger than the frame the shadow is on every side; negative makes it smaller.
public float Spread { get; init; }