Table of Contents

Struct Rgb

Namespace
Emgu.CV.Structure
Assembly
Emgu.CV.dll

Defines a Rgb (Red Green Blue) color

[ColorInfo(ConversionCodename = "Rgb")]
public struct Rgb : IColor, IEquatable<Rgb>
Implements
Inherited Members

Constructors

Rgb(double, double, double)

Create a RGB color using the specific values

public Rgb(double red, double green, double blue)

Parameters

red double

The red value for this color

green double

The green value for this color

blue double

The blue value for this color

Rgb(Color)

Create a Rgb color using the system color

public Rgb(Color winColor)

Parameters

winColor Color

color

Properties

Blue

Get or set the intensity of the blue color channel

public double Blue { get; set; }

Property Value

double

Dimension

Get the dimension of this color

public int Dimension { get; }

Property Value

int

Green

Get or set the intensity of the green color channel

public double Green { get; set; }

Property Value

double

MCvScalar

Get or Set the equivalent MCvScalar value

public MCvScalar MCvScalar { get; set; }

Property Value

MCvScalar

Red

Get or set the intensity of the red color channel

public double Red { get; set; }

Property Value

double

Methods

Equals(Rgb)

Return true if the two color equals

public bool Equals(Rgb other)

Parameters

other Rgb

The other color to compare with

Returns

bool

true if the two color equals

ToString()

Represent this color as a String

public override string ToString()

Returns

string

The string representation of this color