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