DirectX SDK

DirectDrawSurface7.SetForeColor

The DirectDrawSurface7.SetForeColor method sets the foreground color used in drawing methods.

object.SetForeColor(color As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
color
RGB value to set as the foreground color.

Error Codes

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

See Also

DirectDrawSurface7.GetForeColor