VegaRise.NET
Back to DOM

PenAlignmentValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the alignment of a pen along a path.

Remarks

Used by . Center draws the stroke half in and half out of the glyph edge; Inset draws it entirely inside the glyph. TextOutlineEffect.PenAlignment

Examples

csharp
1// 1. Centered stroke
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Center };
3
csharp
1// 2. Inset stroke
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Inset };
3
csharp
1// 3. Centered stroke with thick line
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Center, LineWidth = 3 };
3
csharp
1// 4. Inset stroke for a tighter outline
2var outline = new TextOutlineEffect { PenAlignment = PenAlignmentValues.Inset, LineWidth = 2 };
3

Fields

Center

Stroke centered on the path.

Inset

Stroke drawn inside the path.

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.