| GraphicsHelperGetUniqueColor Method |
Gets a unique color for an object.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static Color GetUniqueColor(
Object obj
)
Public Shared Function GetUniqueColor (
obj As Object
) As Color
public:
static Color GetUniqueColor(
Object^ obj
)
static member GetUniqueColor :
obj : Object -> Color
Parameters
- obj
- Type: SystemObject
The object.
Return Value
Type:
ColorA unique color.
Remarks
The color is created from the hash code of the object. For most cases this is unique but
this is not guaranteed.
See Also