Platform SDK: DirectX

DirectX7.CreateColorRGB

The DirectX7.CreateColorRGB method creates an RGB color from supplied red, green, and blue components.

object.CreateColorRGB(r As Single, _
    g As Single, _
    b As Single) As Long

Parameters

object
Object expression that resolves to a DirectX7 object.
r, g, and b
Components of the RGB color.

Return Values

If the method succeeds, the new RGB value is returned, or zero otherwise.

Error Codes

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

See Also

DirectX7.CreateColorRGBA