This method of the DirectDraw Class duplicates a DirectDrawSurface object.
public DirectDrawSurface duplicateSurface(DirectDrawSurface ddIn);
Returns the DirectDrawSurface object if successful; otherwise, returns null.
ddIn | The DirectDrawSurface object to be duplicated. |
This method creates a new DirectDrawSurface object that represents the same surface memory as an existing DirectDrawSurface object. This duplicate can be used just like the original object. The surface memory is released after the last object referencing it is released. A primary surface, 3D surface, or implicitly created surface cannot be duplicated.