Microsoft SDK for Java

duplicateSurface

This method of the DirectDraw Class duplicates a DirectDrawSurface object.

Syntax

public DirectDrawSurface duplicateSurface(DirectDrawSurface ddIn);

Return Value

Returns the DirectDrawSurface object if successful; otherwise, returns null.

Parameters

ddIn The DirectDrawSurface object to be duplicated.

Remarks

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.