CVB.Net 14.0
RgbColor Struct Reference

Color type resembling that of System.Drawing.Color but which can be used without the System.Drawing dependency. More...

Public Member Functions

int ToArgb ()
 Return the 32 bit integer encoding the AARRGGBB value of this color. More...
 

Static Public Member Functions

static RgbColor FromArgb (int val)
 Construct a RgbColor from 32 bit integer that contains the values for ARGB as (hex) AARRGGBB. More...
 
static RgbColor FromArgb (byte a, byte r, byte g, byte b)
 Construct a RgbColor from A, R, G and B values. More...
 

Properties

byte A [get]
 Alpha component of the color value.
 
byte R [get]
 Red component of the color value
 
byte G [get]
 Green component of the color value.
 
byte B [get]
 Blue component of the color value.
 

Detailed Description

Color type resembling that of System.Drawing.Color but which can be used without the System.Drawing dependency.

Member Function Documentation

◆ FromArgb() [1/2]

static RgbColor FromArgb ( byte  a,
byte  r,
byte  g,
byte  b 
)
static

Construct a RgbColor from A, R, G and B values.

Parameters
aAlpha channel.
rRed channel.
gGreen channel.
bBlue channel.
Returns
RgbColor value.

◆ FromArgb() [2/2]

static RgbColor FromArgb ( int  val)
static

Construct a RgbColor from 32 bit integer that contains the values for ARGB as (hex) AARRGGBB.

Parameters
valAARRGGBB value.
Returns
RgbColor value.

◆ ToArgb()

int ToArgb ( )

Return the 32 bit integer encoding the AARRGGBB value of this color.

Returns
32 bit representation of the color.