Color.Rgb(Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Builds an opaque color by packing red, green, and blue integers.
public static Android.Graphics.Color Rgb(int red, int green, int blue);
static member Rgb : int * int * int -> Android.Graphics.Color
Parameters
- red
- Int32
The red byte value, from zero to 255.
- green
- Int32
The green byte value, from zero to 255.
- blue
- Int32
The blue byte value, from zero to 255.
Returns
The packed RGB color with an alpha component of 255. Inputs are not range-checked.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.