Class ColorRGB
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Class that represents a RGB color.
public sealed class ColorRGB : ColorBase, IEquatable<ColorBase?>, IComparable<ColorBase?>
- Inheritance
-
ColorRGB
- Implements
- Inherited Members
Constructors
ColorRGB(IMagickColor<ushort>)
Initializes a new instance of the ColorRGB class.
public ColorRGB(IMagickColor<ushort> value)
Parameters
valueIMagickColor<ushort>The color to use.
ColorRGB(ushort, ushort, ushort)
Initializes a new instance of the ColorRGB class.
public ColorRGB(ushort red, ushort green, ushort blue)
Parameters
redushortRed component value of this color.
greenushortGreen component value of this color.
blueushortBlue component value of this color.
Properties
B
Gets or sets the blue component value of this color.
public ushort B { get; set; }
Property Value
G
Gets or sets the green component value of this color.
public ushort G { get; set; }
Property Value
R
Gets or sets the red component value of this color.
public ushort R { get; set; }
Property Value
Methods
ComplementaryColor()
Returns the complementary color for this color.
public ColorRGB? ComplementaryColor()
Returns
FromMagickColor(IMagickColor<ushort>)
Converts the specified ImageMagick.IMagickColor<> to an instance of this type.
public static ColorRGB? FromMagickColor(IMagickColor<ushort> color)
Parameters
colorIMagickColor<ushort>The color to use.
Returns
Operators
explicit operator ColorRGB?(MagickColor)
Converts the specified MagickColor to an instance of this type.
public static explicit operator ColorRGB?(MagickColor color)
Parameters
colorMagickColorThe color to use.