中文
Appearance
从给定的RGBA颜色值中返回红色分量(作为Integer)。
语法:RGB_R( RGBA )
返回值为0--255范围内的红色分量。
本示例从使用RGB构建的颜色中提取红色分量。
Dim MyColor As Long Dim RedComponent As Integer MyColor = RGB(255, 100, 150) RedComponent = RGB_R(MyColor) ' Returns 255.