ClassGrayColor
Class
Device grayscale color with a single component representing the gray value.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
cs-api-definition
public class GrayColor : SimpleColor, IEquatable<ColorBase>
Inheritance: objectColorBaseSimpleColorGrayColor
Implements:
Inherited Members
Constructors
GrayColor()
Creates a GrayColor with the gray component set to 0 (black).
Declaration
cs-api-definition
public GrayColor()
GrayColor(byte)
Creates a GrayColor from a gray value.
Declaration
cs-api-definition
public GrayColor(byte g)
Parameters
g
The gray component value (0-255), where 0 is black and 255 is white.
Fields
Methods
ToString()
Returns a string representation of this gray color showing its component value.
Declaration
cs-api-definition
public override string ToString()
Returns
A string in the format "<G=value>".
Overrides