Class ColorMono
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Class that represents a monochrome color.
public sealed class ColorMono : ColorBase, IEquatable<ColorBase?>, IComparable<ColorBase?>
- Inheritance
-
ColorMono
- Implements
- Inherited Members
Properties
Black
Gets a new instance of the ColorMono class that is black.
public static ColorMono Black { get; }
Property Value
IsBlack
Gets or sets a value indicating whether the color is black or white.
public bool IsBlack { get; set; }
Property Value
White
Gets a new instance of the ColorMono class that is white.
public static ColorMono White { get; }
Property Value
Methods
FromMagickColor(IMagickColor<ushort>)
Converts the specified ImageMagick.IMagickColor<> to an instance of this type.
public static ColorMono? FromMagickColor(IMagickColor<ushort> color)
Parameters
color
IMagickColor<ushort>The color to use.
Returns
UpdateColor()
Updates the color value in an inherited class.
protected override void UpdateColor()
Operators
explicit operator ColorMono?(MagickColor)
Converts the specified MagickColor to an instance of this type.
public static explicit operator ColorMono?(MagickColor color)
Parameters
color
MagickColorThe color to use.