FromArgb()

Color::FromArgb(int) method

Constructs an instance of Color class that reprsents the specfied color.

static Color System::Drawing::Color::FromArgb(int argb)

Arguments

ParameterTypeDescription
argbintA 32-bit ARGB value of the color to be represented by the object being constructed

Return Value

An object that represents the specified color.

Color::FromArgb(int, int, int, int) method

Constructs an instance of Color class that reprsents the specfied color.

static Color System::Drawing::Color::FromArgb(int alpha, int red, int green, int blue)

Arguments

ParameterTypeDescription
alphaintA value of the alpah component of the color
redintA value of the red component of the color
greenintA value of the green component of the color
blueintA value of the blue component of the color

Return Value

An object that represents the specified color.

Color::FromArgb(int, int, int) method

Constructs an instance of Color class that reprsents the specfied color with alpha component set to 0xFF.

static Color System::Drawing::Color::FromArgb(int red, int green, int blue)

Arguments

ParameterTypeDescription
redintA value of the red component of the color
greenintA value of the green component of the color
blueintA value of the blue component of the color

Return Value

An object that represents the specified color.

Color::FromArgb(int, Color) method

Constructs an instance of Color class that reprsents the specfied color.

static Color System::Drawing::Color::FromArgb(int alpha, Color base_color)

Arguments

ParameterTypeDescription
alphaintA value of the alpah component of the color
base_colorColorAn instance of Color object that represents the red, green and blue components of the color to be represented by the object being created

Return Value

An object that represents the specified color.

See Also