System::Drawing::Color::FromArgb method

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

ReturnValue

An object that represents the specified color.

See Also

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

ReturnValue

An object that represents the specified color.

See Also

Color::FromArgb(int) method

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

static Color System::Drawing::Color::FromArgb(int argb)
ParameterTypeDescription
argbintA 32-bit ARGB value of the color to be represented by the object being constructed

ReturnValue

An object that represents the specified color.

See Also

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

ReturnValue

An object that represents the specified color.

See Also