Share via


PrtBuffer.Resize(Int32) Method (Microsoft.DirectX.Direct3D)

Changes the number of samples contained in the buffer.

Definition

Visual Basic Public Sub Resize( _
    ByVal newSize As Integer _
)
C# public void Resize(
    int newSize
);
C++ public:
void Resize(
    int newSize
);
JScript public function Resize(
    newSize : int
);

Parameters

newSize System.Int32
Number of samples to be contained in the buffer.

Remarks

Exceptions

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.