C# Class ImageMagick.ColorGray

Class that represents a gray color.
Inheritance: ColorBase
Show file Open project: dlemstra/Magick.NET

Public Methods

Method Description
ColorGray ( double shade ) : System

Initializes a new instance of the ColorGray class.

FromMagickColor ( MagickColor color ) : ColorGray

Converts the specified MagickColor to an instance of this type.

Protected Methods

Method Description
UpdateValue ( ) : void

Updates the color value in an inherited class.

Private Methods

Method Description
ColorGray ( MagickColor color ) : System

Method Details

ColorGray() public method

Initializes a new instance of the ColorGray class.
public ColorGray ( double shade ) : System
shade double Value between 0.0 - 1.0.
return System

FromMagickColor() public static method

Converts the specified MagickColor to an instance of this type.
public static FromMagickColor ( MagickColor color ) : ColorGray
color MagickColor The color to use.
return ColorGray

UpdateValue() protected method

Updates the color value in an inherited class.
protected UpdateValue ( ) : void
return void