语言

Color.GetRedComponent(Int32) 方法

定义

从打包的 ARGB 颜色整数中提取红色组件。

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

参数

color
Int32

打包的 ARGB 颜色整数,如返回的值 ToArgb()。

返回

范围 0-255 中的红色分量 color。

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于