Color.GetRedComponent(Int32) 方法

定义

从整数颜色获取红色分量。

public static int GetRedComponent (int color);
static member GetRedComponent : int -> int

参数

color
Int32

颜色(ARGB)的整数表示形式。

返回

红色组件 [0-255]。

注解

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于