Ejemplo n.º 1
0
 /// <summary>
 /// Creates a colour from ARGB values.
 /// </summary>
 /// <returns>The colour.</returns>
 /// <param name="a">Alpha value.</param>
 /// <param name="r">Red value.</param>
 /// <param name="g">Green value.</param>
 /// <param name="b">Blue value.</param>
 public static Colour FromArgb(byte a, byte r, byte g, byte b) => ColourTranslator.FromArgb(a, r, g, b);
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a colour from ARGB values.
 /// </summary>
 /// <returns>The colour.</returns>
 /// <param name="a">Alpha value.</param>
 /// <param name="r">Red value.</param>
 /// <param name="g">Green value.</param>
 /// <param name="b">Blue value.</param>
 public static Colour FromArgb(int a, int r, int g, int b) => ColourTranslator.FromArgb(a, r, g, b);
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a colour from an ARGB integer.
 /// </summary>
 /// <returns>The colour.</returns>
 /// <param name="argb">ARGB integer.</param>
 public static Colour FromArgb(int argb) => ColourTranslator.FromArgb(argb);