Platform SDK: DirectX

DirectX7.CreateColorRGBA

The DirectX7.CreateColorRGBA method creates an RGBA color from supplied red, green, blue, and alpha components.

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

Parameters

object
Object expression that resolves to a DirectX7 object.
r, g, b, and a
Components of the RGBA color. Values between 0 and 1.

Return Values

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

Error Codes

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

See Also

DirectX7.CreateColorRGB