- public static int argb (int alpha, int red, int green, int blue)
Return a color-int from alpha, red, green, blue components. These component values should be [0..255], but there is no range check performed, so if they are out of range, the returned color is undefined. - public static int rgb (int red, int green, int blue)
Return a color-int from red, green, blue components. The alpha component is implicity 255 (fully opaque). These component values should be [0..255], but there is no range check performed, so if they are out of range, the returned color is undefined.
Get color-int from alpha, red, green, blue components
Android system's android.graphics.Color class provide methods for creating and converting color ints.
0 Response to "Get color-int from alpha, red, green, blue components"
Posting Komentar