FromArgb


Summary

Creates a color from alpha, red, green and blue components.

Syntax

public static Color FromArgb(int alpha, int red, int green, int blue)
public static Color FromArgb(int alpha, Color baseColor)
public static Color FromArgb(int argb)
public static Color FromArgb(int red, int green, int blue)

Parameters

NameDescription

Example 1

var greenColor = Color.FromArgb(255, 0, 255, 0);