public class ColorPalette
Computes different color palettes.
Stores parameters and computes different color palettes. It support transitions between two colors, three colors, rainbow transition between two colors and rainbow transitions between three colors. Rainbow and non-rainbow transitions can be mixed in three color models. Top and bottom clip off colors can be specified separately.
Properties
| Name | Type | Description |
|---|---|---|
| BottomColor | Color | Defines color for the minimum value. |
| ColorBalance | Double | Defines the color balance. |
| ColorBalanceMid | Double | Defines the mid color balance for three color model. |
| MidColor | Color | Defines color for medium value. |
| PaletteScale | PaletteScale | Defines how to manage the automatic palette scaling. |
| PaletteSteps | Int32 | Defines number of palette steps. |
| PaletteStyle | GridPaletteStyle | Defines palette style. |
| Rainbow | RainbowSettings | Defines the rainbow color mixing. |
| SharpConstrast | Boolean | Activates sharp contrast feature. |
| TopColor | Color | Defines color for the maximum value. |
| UseMidColor | Boolean | Returns true if middle color is used (three colors). |
Methods
| Name | Description |
|---|---|
| Add | Add new custom palette level/entry. |
| Clear | Clears the palette entries. |
| CreateCustomRangePalette | Create equidistant palette entries/levels. |
| CreateDefaultPalette | Create default palette entries/levels. |
| CreatePeakHoldPalette | Create default palette entries/levels, but keep the scale. |
| ctor | Color palette constructor. |
| GetColor | The color from the current color palette. |
| ResetPeakScale | Resets the scales in case of Peak-hold palette style. |
| SwapToBottomColors | Swaps top and bottom colors. |
Events
| Name | Description |
|---|---|
| UpdateColor | Called when the color parameters are updated. |