This method of the DirectDrawSurface Class notifies DirectDraw that the direct surface manipulations are complete and copies the contents of the memory buffer into the surface.
public void unlock(Rect r, DDSurfaceDesc d, byte[] memory);
r | A Rect object that identifies the region of surface that receives the changes. |
d | The DDSurfaceDesc object returned by the lock method. |
memory | Array variable that contains the new contents of the surface memory. |