Platform SDK: DirectX

DirectX7.ColorGetGreen

The DirectX7.ColorGetGreen method retrieves the green component of a color.

object.ColorGetGreen(color As Long) As Single

Parameters

object
Object expression that resolves to a DirectX7 object.
color
Color from which the green component is retrieved. A value between 0 and 255.

Return Values

If the method succeeds, the green value is returned if successful, or zero otherwise.

Error Codes

If the method fails, an error is raised and Err.Number is set.

See Also

DirectX7.ColorGetAlpha, DirectX7.ColorGetBlue, DirectX7.ColorGetRed