Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows.Media;
|
---|
6 |
|
---|
7 | namespace Microsoft.Research.DynamicDataDisplay.Common.Palettes
|
---|
8 | {
|
---|
9 | /// <summary>
|
---|
10 | /// Represents a color palette, which can generate color by interpolation coefficient.
|
---|
11 | /// </summary>
|
---|
12 | public interface IPalette
|
---|
13 | {
|
---|
14 | /// <summary>
|
---|
15 | /// Gets the color by interpolation coefficient.
|
---|
16 | /// </summary>
|
---|
17 | /// <param name="t">Interpolation coefficient, should belong to [0..1].</param>
|
---|
18 | /// <returns>Color.</returns>
|
---|
19 | Color GetColor(double t);
|
---|
20 |
|
---|
21 | /// <summary>
|
---|
22 | /// Occurs when palette changes.
|
---|
23 | /// </summary>
|
---|
24 | event EventHandler Changed;
|
---|
25 | }
|
---|
26 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.