Microsoft SDK for Java

getFreeMem

This method of the DirectDraw Class retrieves the amount of display memory currently free.

Syntax

public int getFreeMem(int [] ddsCaps);

Return Value

Returns the amount of free display memory.

Parameters

ddsCaps An array of the values found in the DDSCaps class.

Remarks

This method provides only a snapshot of the current display-memory state. The amount of free display memory is subject to change as surfaces are created and released. Therefore, you should use the free memory value only as an approximation.

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