Class ColorGray
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Class that represents a gray color.
public sealed class ColorGray : ColorBase, IEquatable<ColorBase?>, IComparable<ColorBase?>- Inheritance
- 
      
      
      ColorGray
- Implements
- Inherited Members
Constructors
ColorGray(double)
Initializes a new instance of the ColorGray class.
public ColorGray(double shade)Parameters
- shadedouble
- Value between 0.0 - 1.0. 
Properties
Shade
Gets or sets the shade of this color (value between 0.0 - 1.0).
public double Shade { get; set; }Property Value
Methods
FromMagickColor(MagickColor)
Converts the specified MagickColor to an instance of this type.
public static ColorGray? FromMagickColor(MagickColor color)Parameters
- colorMagickColor
- The color to use. 
Returns
UpdateColor()
Updates the color value in an inherited class.
protected override void UpdateColor()Operators
explicit operator ColorGray?(MagickColor)
Converts the specified MagickColor to an instance of this type.
public static explicit operator ColorGray?(MagickColor color)Parameters
- colorMagickColor
- The color to use.