PrtBuffer.ScaleBuffer Method

Language:

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center