Class BlendMode
A class for blend modes.
public class BlendMode
- Inheritance
-
BlendMode
- Inherited Members
Fields
Add
Add blend mode.
public static readonly BlendMode Add
Field Value
Multiply
Multiply blend mode.
public static readonly BlendMode Multiply
Field Value
Normal
Normal blend mode.
public static readonly BlendMode Normal
Field Value
Overlay
Overlay blend mode.
public static readonly BlendMode Overlay
Field Value
Replace
Replace blend mode.
public static readonly BlendMode Replace
Field Value
Screen
Screen blend mode.
public static readonly BlendMode Screen
Field Value
Subtract
Subtract blend mode.
public static readonly BlendMode Subtract
Field Value
blendModes
All implemented blend modes.
public static readonly BlendMode[] blendModes
Field Value
Methods
Blend(Color, Color)
Blend the two colours using the blend mode's blend function.
public Color Blend(Color topColour, Color bottomColour)
Parameters
topColour
ColorbottomColour
Color
Returns
- Color
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MultiplyColours(Color, Color)
Multiplies the colours component-wise.
public static Color MultiplyColours(Color colour1, Color colour2)
Parameters
colour1
Colorcolour2
Color
Returns
- Color
StringToBlendMode(string)
Returns the blend mode with that name (case-insensitive).
public static BlendMode StringToBlendMode(string blendModeName)
Parameters
blendModeName
string
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(BlendMode, BlendMode)
public static bool operator ==(BlendMode a, BlendMode b)
Parameters
Returns
operator !=(BlendMode, BlendMode)
public static bool operator !=(BlendMode a, BlendMode b)