VegaRise.NET
Back to DOM

ReflectionClass

Definition

Namespace
DOM.Elements.Graphics.Effects
Assembly
DOM.dll

Represents a reflection effect applied to text or objects.

Remarks

mirrors the rendered content below the element with an opacity gradient from to . The mirrored copy can be shifted (via and ), blurred (via ), and geometrically transformed (via,, and the skew angles). Reflection StartingOpacity EndingOpacity StartPosition EndPosition BlurRadius HorizontalScalingFactor VerticalScalingFactor The default constructor configures a Word-style reflection with a bottom-left alignment, a small blur, and a fading opacity gradient.

Examples

csharp
1// 1. Use the default reflection
2var reflection = new Reflection();
3
csharp
1// 2. Custom reflection below the text
2var reflection = new Reflection
3{
4 Alignment = RectangleAlignmentValues.Bottom,
5 BlurRadius = new DocumentUnit(5, Units.pt),
6 StartingOpacity = 70,
7 EndingOpacity = 20,
8 DistanceFromText = new DocumentUnit(4, Units.pt)
9};
10
csharp
1// 3. Attach a reflection to text
2var style = new TextStyle
3{
4 TextEffect = new TextEffect { ReflectionEffect = new Reflection
5 {
6 Alignment = RectangleAlignmentValues.BottomCenter,
7 BlurRadius = new DocumentUnit(4, Units.pt)
8 }}
9};
10
csharp
1// 4. Skewed reflection for a perspective effect
2var reflection = new Reflection
3{
4 HorizontalSkewAngle = 15,
5 VerticalSkewAngle = 0,
6 HorizontalScalingFactor = new Percentage(120),
7 VerticalScalingFactor = new Percentage(-100)
8};
9
csharp
1// 5. Colored reflection
2var reflection = new Reflection
3{
4 SchemeColor = Color.DarkBlue,
5 StartingOpacity = 60,
6 EndingOpacity = 10
7};
8

Constructors

Reflection()

Initializes a new with Word-style defaults: a small blur, symmetric opacity fade (50% → 50%), a bottom-left alignment, and no skew. Reflection

Properties

Gets or sets the alignment of the reflection effect.

BlurRadiusDocumentUnit

Gets or sets the blur radius of the reflection effect.

The blur radius is specified in points by convention.

DirectionAngleRotation

Gets or sets the direction angle of the reflection effect.

DistanceFromTextDocumentUnit

Gets or sets the distance of the reflection effect from the text or object.

The distance is specified in points by convention.

EndingOpacitydouble

Gets or sets the ending opacity of the reflection effect.

EndPositionDocumentUnit

Gets or sets the ending position of the reflection effect.

FadeDirectionAngleRotation

Gets or sets the fade direction of the reflection effect.

HorizontalScalingFactorPercentage

Gets or sets the horizontal scaling factor of the reflection effect.

HorizontalSkewAngleRotation

Gets or sets the horizontal skew angle of the reflection effect.

SchemeColorColor

Gets or sets the scheme color of the reflection effect.

StartingOpacitydouble

Gets or sets the starting opacity of the reflection effect.

StartPositionDocumentUnit

Gets or sets the starting position of the reflection effect.

VerticalScalingFactorPercentage

Gets or sets the vertical scaling factor of the reflection effect.

VerticalSkewAngleRotation

Gets or sets the vertical skew angle of the reflection effect.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in