VegaRise.NET
Back to DOM

DuoToneClass

Definition

Namespace
DOM.Elements.Graphics.Colors
Assembly
DOM.dll

Concrete implementation of a duo-tone color mapping.

Remarks

is the default implementation of . Both colors default to a new (unspecified) instance. DuoTone IDuoTone Color

Examples

csharp
1// 1. Create a duo-tone mapping
2var duo = new DuoTone { Color1 = Color.DarkBlue, Color2 = Color.White };
3
csharp
1// 2. Attach to a picture fill
2var fill = new PictureOrTextureFill { DuoTone = new List<IDuoTone> { duo } };
3
csharp
1// 3. Multiple duo-tones (applied in sequence)
2fill.DuoTone = new List<IDuoTone>
3{
4 new DuoTone { Color1 = Color.Black, Color2 = Color.White }
5};
6
csharp
1// 4. Implicit default colors
2var duo = new DuoTone();
3

Properties

Color1

Gets or sets the dark color of the duo-tone mapping.

Color2

Gets or sets the light color of the duo-tone mapping.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in