Class ColorRGB
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q8-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<byte>)
Initializes a new instance of the ColorRGB class.
public ColorRGB(IMagickColor<byte> value)
Parameters
value
IMagickColor<byte>The color to use.
ColorRGB(byte, byte, byte)
Initializes a new instance of the ColorRGB class.
public ColorRGB(byte red, byte green, byte blue)
Parameters
red
byteRed component value of this color.
green
byteGreen component value of this color.
blue
byteBlue component value of this color.
Properties
B
Gets or sets the blue component value of this color.
public byte B { get; set; }
Property Value
G
Gets or sets the green component value of this color.
public byte G { get; set; }
Property Value
R
Gets or sets the red component value of this color.
public byte R { get; set; }
Property Value
Methods
ComplementaryColor()
Returns the complementary color for this color.
public ColorRGB? ComplementaryColor()
Returns
FromMagickColor(IMagickColor<byte>)
Converts the specified ImageMagick.IMagickColor<> to an instance of this type.
public static ColorRGB? FromMagickColor(IMagickColor<byte> color)
Parameters
color
IMagickColor<byte>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
color
MagickColorThe color to use.