Table of Contents

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

ColorMono

IsBlack

Gets or sets a value indicating whether the color is black or white.

public bool IsBlack { get; set; }

Property Value

bool

White

Gets a new instance of the ColorMono class that is white.

public static ColorMono White { get; }

Property Value

ColorMono

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

ColorMono

A ColorMono instance.

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 MagickColor

The color to use.

Returns

ColorMono

A ColorMono instance.