Platform SDK: DirectX |
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
If the method succeeds, the new RGB value is returned, or zero otherwise.
If the method fails, an error is raised and Err.Number is set.