Platform SDK: DirectX

DirectX7.ColorGetRed

The DirectX7.ColorGetRed method retrieves the red component of a color.

object.ColorGetRed(color As Long) As Single

Parameters

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

Return Values

If the method succeeds, the red 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.ColorGetGreen, DirectX7.ColorGetBlue