Class IColormapExtensions
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
public static class IColormapExtensions
- Inheritance
-
IColormapExtensions
- Inherited Members
Methods
GetColor(IColormap, double, Range)
public static Color GetColor(this IColormap cmap, double position, Range range)
Parameters
Returns
GetColor(IColormap, int, int, double, double)
Return the color for an item at index index of a collection of size count.
The startFraction and endFraction may be customized to restrict sampling to a portion of the colormap.
public static Color GetColor(this IColormap cmap, int index, int count, double startFraction = 0, double endFraction = 1)
Parameters
Returns
GetColors(IColormap, int, double, double)
Returns an array of colors evenly spaced along the colormap
public static Color[] GetColors(this IColormap colormap, int count, double minFraction = 0, double maxFraction = 1)
Parameters
colormapIColormapcountintThe number of colors to get from the colormap.
minFractiondoubleThe starting fraction in the colormap range from which to begin extracting colors (normalized to [0, 1]).
maxFractiondoubleThe ending fraction in the colormap range at which to stop extracting colors (normalized to [0, 1]).
Returns
- Color[]
GetImageHorizontal(IColormap, int, int)
public static Image GetImageHorizontal(this IColormap colormap, int height = 1, int width = 256)
Parameters
Returns
GetImageVertical(IColormap, int, int)
public static Image GetImageVertical(this IColormap colormap, int height = 256, int width = 1)
Parameters
Returns
Invert(IColormap)
public static IColormap Invert(this IColormap original)
Parameters
originalIColormap
Returns
InvertHue(IColormap)
public static IColormap InvertHue(this IColormap original)
Parameters
originalIColormap
Returns
Reversed(IColormap)
public static IColormap Reversed(this IColormap cmap)
Parameters
cmapIColormap