DirectX SDK

DirectDrawSurface7.SetLockedPixel

The DirectDrawSurface7.SetLockedPixel method sets a single pixel to the specified color and updates the locked surface.

object.SetLockedPixel( _ 
    x As Long, _ 
    y As Long, _ 
    col As Long)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x and y
Coordinates of the pixel to set.
col
RGB value for the set pixel.

Error Codes

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

Remarks

You must first lock the surface with a call to DirectDrawSurface7.Lock.

See Also

DirectDrawSurface7.GetLockedPixel