C# Class ImageMagick.ColorCMYK

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

Private Properties

Property Type Description
ColorCMYK System
ColorCMYK System
ColorCMYK System
CreateColor MagickColor

Public Methods

Method Description
ColorCMYK ( Percentage cyan, Percentage magenta, Percentage yellow, Percentage key ) : System

Initializes a new instance of the ColorCMYK class.

ColorCMYK ( Percentage cyan, Percentage magenta, Percentage yellow, Percentage key, Percentage alpha ) : System

Initializes a new instance of the ColorCMYK class.

ColorCMYK ( string color ) : System

Initializes a new instance of the ColorCMYK class.

FromMagickColor ( MagickColor color ) : ColorCMYK

Converts the specified MagickColor to an instance of this type.

Private Methods

Method Description
ColorCMYK ( Byte cyan, Byte magenta, Byte yellow, Byte key ) : System
ColorCMYK ( Byte cyan, Byte magenta, Byte yellow, Byte key, Byte alpha ) : System
ColorCMYK ( MagickColor color ) : System
CreateColor ( string color ) : MagickColor

Method Details

ColorCMYK() public method

Initializes a new instance of the ColorCMYK class.
public ColorCMYK ( Percentage cyan, Percentage magenta, Percentage yellow, Percentage key ) : System
cyan Percentage Cyan component value of this color.
magenta Percentage Magenta component value of this color.
yellow Percentage Yellow component value of this color.
key Percentage Key (black) component value of this color.
return System

ColorCMYK() public method

Initializes a new instance of the ColorCMYK class.
public ColorCMYK ( Percentage cyan, Percentage magenta, Percentage yellow, Percentage key, Percentage alpha ) : System
cyan Percentage Cyan component value of this color.
magenta Percentage Magenta component value of this color.
yellow Percentage Yellow component value of this color.
key Percentage Key (black) component value of this color.
alpha Percentage Alpha component value of this color.
return System

ColorCMYK() public method

Initializes a new instance of the ColorCMYK class.
public ColorCMYK ( string color ) : System
color string The CMYK hex string or name of the color (http://www.imagemagick.org/script/color.php). /// For example: #F000, #FF000000, #FFFF000000000000
return System

FromMagickColor() public static method

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