Constructors
Properties
Indexers
Methods
Blur
#public ColourMap Blur(SamplerTiling horizontal, SamplerTiling vertical, BlurProfileType profile, float radius, CancellationToken token = default(CancellationToken))
Blur this colour map.
Parameters:
| horizontal (SamplerTiling) | Horizontal tiling. |
| vertical (SamplerTiling) | Vertical tiling. |
| profile (BlurProfileType) | Blur profile. |
| radius (float) | Blur radius. |
| token (CancellationToken = null) | Cancellation token. |
Returns: Blurred colourmap.
Blur
#public ColourMap Blur(SamplerTiling horizontal, SamplerTiling vertical, BlurProfileType profile, NumberMap radius, CancellationToken token = default(CancellationToken))
Blur this colour map.
Parameters:
| horizontal (SamplerTiling) | Horizontal tiling. |
| vertical (SamplerTiling) | Vertical tiling. |
| profile (BlurProfileType) | Blur profile. |
| radius (NumberMap) | Blur radius. |
| token (CancellationToken = null) | Cancellation token. |
Returns: Blurred colourmap.
Clip
#Clip the entire colour map, ie. ensure all channels are within the (0~1) range.
Parameters:
| map (ColourMap) | Map to clip. |
Returns: Clipped map.
CreateFromBitmap
#Copy the bitmap colours into a ColourMap.
Parameters:
| bitmap (Bitmap) | Bitmap to extract. |
CreateFromBitmap
#Copy the bitmap colours into a ColourMap.
Parameters:
| data (BitmapData) | Bitmap data to extract. |
CreateFromDelegate
#Populate a colour map using a shader delegate.
Parameters:
| width (int) | Width of map to create. |
| height (int) | Height of map to create. |
| shader (ColourMapShader) | Shader delegate. |
Returns: Instantiated colour map.
Gamma
#Perform a gamma adjustment on this colour map.
Parameters:
| map (ColourMap) | Map. |
Returns: Adjusted map.
Invert
#Perform a gamma adjustment on this colour map.
Modify
#Apply a custom modifier to this map.
SetChannel
#Set the specified channel value of each colour.
SubMap
#Copy a portion of this map into a new map.
Tabulate
#Pull all values in a map to a collection of allowed values.
Parameters:
| map (ColourMap) | Map. |
| table (IEnumerable<Color>) | Collection of values to tabulate against. |
Returns: Tabulated map.
Tabulate
#Pull all values in a map to a collection of allowed values.
Parameters:
| map (ColourMap) | Map. |
| table (params Color[]) | Collection of values to tabulate against. |
Returns: Tabulated map.
ToBitmap
#public Bitmap ToBitmap(PixelFormat format)
Create a bitmap out of this colour map.
Parameters:
| format (PixelFormat) | Pixel format to use. |
Returns: Bitmap.
ToColourArray
#public Color[][] ToColourArray()
Create a nested colour array from this map.
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. | |