Table of Contents

Struct Rgba

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

Defines a Rgba (Red Green Blue Alpha) color

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

Constructors

Rgba(double, double, double, double)

Create a RGBA color using the specific values

public Rgba(double red, double green, double blue, double alpha)

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

alpha double

The alpha value for this color

Properties

Alpha

Get or set the intensity of the alpha color channel

public double Alpha { get; set; }

Property Value

double

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(Rgba)

Return true if the two color equals

public bool Equals(Rgba other)

Parameters

other Rgba

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