语言

Color.GetAlphaComponent(Int32) 方法

定义

从打包的 ARGB 颜色整数中提取 alpha(不透明度)组件,其中 0 完全透明,255 完全不透明。

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

参数

color
Int32

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

返回

范围 0-255 中的 alpha 分量 color。

注解

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

适用于