PrtBuffer.ScaleBuffer(Single) Method (Microsoft.DirectX.Direct3D)

Multiplies every value in the buffer by a constant value.

Definition

Visual Basic Public Sub ScaleBuffer( _
    ByVal scaleFactor As Single _
)
C# public void ScaleBuffer(
    float scaleFactor
);
C++ public:
void ScaleBuffer(
    float scaleFactor
);
JScript public function ScaleBuffer(
    scaleFactor : float
);

Parameters

scaleFactor System.Single
Constant value used to scale the buffer. Every value in the buffer is replaced by the product of this value and the original buffer value.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.