DirectX SDK

DirectDrawSurface7.GetLockedPixel

The DirectDrawSurface7.GetLockedPixel method returns the specified pixel set by DirectDrawSurface7.SetLockedPixel.

object.GetLockedPixel( _ 
    x As Long, _ 
    y As Long) As Long

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x and y
Coordinates of the locked pixel.

Return Values

If the method succeeds, it returns the color of the locked pixel. This value is in the same format as the pixel format.

Error Codes

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