Constructors
Properties
Indexers
Methods
Blur
#Blur this colour map.
public ColourMap Blur()
horizontal,
Horizontal tiling.
vertical,
Vertical tiling.
profile,
Blur profile.
radius,
Blur radius.
Cancellation token.
Returns: Blurred colourmap.
Blur
#Blur this colour map.
public ColourMap Blur()
horizontal,
Horizontal tiling.
vertical,
Vertical tiling.
profile,
Blur profile.
radius,
Blur radius.
Cancellation token.
Returns: Blurred colourmap.
Clip
#Clip the entire colour map, ie. ensure all channels are within the (0~1) range.
Returns: Clipped map.
CreateFromDelegate
#Populate a colour map using a shader delegate.
public static ColourMap CreateFromDelegate()
width,
Width of map to create.
height,
Height of map to create.
shader
Shader delegate.
Returns: Instantiated colour map.
Tabulate
#Pull all values in a map to a collection of allowed values.
Returns: Tabulated map.
ToBitmap
#Create a bitmap out of this colour map.
public Bitmap ToBitmap()
PixelFormat
format
Pixel format to use.
Returns: Bitmap.
ToColourArray
#Create a nested colour array from this map.
public Color[][] ToColourArray()
Returns: Colour array.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Color | + | ColourMap | ColourMap | Add a value to this float map. |
| ColourMap | + | ColourMap | ColourMap | Add two maps together. |
| ColourMap | + | Color | ColourMap | Add a value to this float map. |
| Color | * | ColourMap | ColourMap | Multiply this map by a factor. |
| ColourMap | * | ColourMap | ColourMap | Multiply two maps together. |
| ColourMap | * | Color | ColourMap | Multiply this map by a factor. |
| ColourMap | * | float | ColourMap | Multiply this map by a factor. |
| float | * | ColourMap | ColourMap | Multiply this map by a factor. |
| Color | - | ColourMap | ColourMap | Subtract the entire map from a value. |
| ColourMap | - | ColourMap | ColourMap | Subtract one map from another. |
| ColourMap | - | Color | ColourMap | Subtract a value from this float map. |
| - | ColourMap | ColourMap | Inversion operator. | |
| + | ColourMap | ColourMap | Identity operator. | |