DirectX SDK |
The DirectDrawSurface7.GetLockedArray method returns a pointer to the array of locked pixels after a call to DirectDrawSurface7.Lock.
object.GetLockedArray( _ array() As Byte)
If the method fails, it raises an error, and Err.Number is set.
This method is provided for advanced users. Use this method only between DirectDrawSurface7.Lock and DirectDrawSurface7.Unlock calls. On some display cards, the pitch is not equal to the width of the surface; be sure not to write in memory beyond the array.