Table of Contents

Struct RGBValue

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

A simple class which stores red, green and blue values as 8 bit unsigned integers in the range of 0-255.

public struct RGBValue : IEquatable<RGBValue>
Implements

Constructors

RGBValue()

Initializes a new instance of the RGBValue.

RGBValue(byte, byte, byte)

Initializes a new instance of the RGBValue.

Fields

B

Blue component of a color.

G

Green component of a color.

R

Red component of a color.

Properties

AsDebugString

Gets color name and ARGB for the debug purposes.

Methods

Equals(RGBValue)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Tests whether obj is a RGBValue and is equal to this object

GetHashCode()

Gets the hash code for this RectD.

ToSkia(RGBValue)

Converts RGBValue to SKColor.

ToSkia(RGBValue, byte)

Converts RGBValue to SKColor.

ToString()

Gets string representation of this object.

WithAlpha(byte)

Returns this object as SKColor with the specified alpha component.

Operators

operator ==(RGBValue, RGBValue)

Tests whether two RGBValue objects are equal.

implicit operator RGBValue(HSVValue)

Implicit operator convertion from HSVValue to RGBValue.

implicit operator HSVValue(RGBValue)

Implicit operator convertion from RGBValue to HSVValue.

implicit operator SKColor(RGBValue)

Converts the specified RGBValue to a SKColor.

implicit operator RGBValue(SKColor)

Converts the specified SKColor to a RGBValue.

implicit operator RGBValue((byte, byte, byte))

Implicit operator convertion from tuple with three byte values to RGBValue.

operator !=(RGBValue, RGBValue)

Tests whether two RGBValue objects are different.