VegaRise.NET
Back to DOM

GlowClass

Definition

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

Represents the glow effect applied to an object or text.

Remarks

A draws a soft, radiating halo around a shape or text run. The size of the halo is controlled by and its color by . Glow is typically composed inside or applied to a shape through the effect pipeline. Glow GlowRadius GlowColor GlowEffect The radius is a, so it can be expressed in points, inches, EMU, or any other supported unit. DocumentUnit

Examples

csharp
1// 1. Simple blue glow
2var glow = new Glow
3{
4 GlowRadius = new DocumentUnit(6, Units.pt),
5 GlowColor = Color.Blue
6};
7
csharp
1// 2. Soft semi-transparent gold glow
2var glow = new Glow
3{
4 GlowRadius = new DocumentUnit(8, Units.pt),
5 GlowColor = new Color(128, 255, 215, 0) // 50% alpha gold
6};
7
csharp
1// 3. Attach a glow to text
2var style = new TextStyle
3{
4 TextEffect = new TextEffect
5 {
6 GlowEffect = new Glow { GlowRadius = new DocumentUnit(4, Units.pt), GlowColor = Color.Orange }
7 }
8};
9
csharp
1// 4. Subtle inward glow (small radius, low opacity)
2var glow = new Glow
3{
4 GlowRadius = new DocumentUnit(2, Units.pt),
5 GlowColor = new Color(80, 255, 255, 255)
6};
7
csharp
1// 5. Glow using a theme color
2var glow = new Glow
3{
4 GlowRadius = new DocumentUnit(5, Units.pt),
5 GlowColor = Color.Accent1
6};
7

Properties

GlowColorColor

Gets or sets the color of the glow effect.

GlowRadiusDocumentUnit

Gets or sets the radius of the glow effect.

The glow radius is specified in points by convention, but any supported unit is accepted.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.