IntegratedMetricTensor.ComputeFromPerTexelSignal Method

Language:

Calculates an IMT from per-texel data. This function is very similar to ComputeFromTexture, but it uses a float array to pass in the data, and it can calculate higher dimensional values than 4.

Definition

Visual Basic Public Shared Function ComputeFromPerTexelSignal( _
    ByVal mesh As Mesh, _
    ByVal textureIndex As Integer, _
    ByVal texelSignal() As Single, _
    ByVal width As Integer, _
    ByVal height As Integer, _
    ByVal signalDimension As Integer, _
    ByVal components As Integer, _
    ByVal flags As ImtWrap _
) As GraphicsStream
C# public static GraphicsStream ComputeFromPerTexelSignal(
    Mesh mesh,
    int textureIndex,
    float[] texelSignal,
    int width,
    int height,
    int signalDimension,
    int components,
    ImtWrap flags
);
C++ public:
static GraphicsStreamComputeFromPerTexelSignal(
    Meshmesh,
    int textureIndex,
    array<float>^ texelSignal,
    int width,
    int height,
    int signalDimension,
    int components,
    ImtWrap flags
);
JScript public static function ComputeFromPerTexelSignal(
    mesh : Mesh,
    textureIndex : int,
    texelSignal : float[],
    width : int,
    height : int,
    signalDimension : int,
    components : int,
    flags : ImtWrap
) : GraphicsStream;

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh
An input mesh (see Mesh) that contains the object geometry for calculating the IMT.
textureIndex System.Int32
Zero-based texture coordinate index that identifies which set of texture coordinates to use.
texelSignal System.Single[]
An array of floating-point values that represent the texel signals. The array size is equivalent to width*height*components.
width System.Int32
The width of the texture.
height System.Int32
The height of the texture.
signalDimension System.Int32
The number of floating-point values per component in each element of the texelSignal array.
components System.Int32
The number of components in each element of the texelSignal array.
flags Microsoft.DirectX.Direct3D.ImtWrap
Combination of one or more ImtWrap flags.

Return Value

Microsoft.DirectX.GraphicsStream
A GraphicsStream object that will return the calculated IMT data.

Remarks

Exceptions
Direct3DXException The operation failed.


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

Feedback? Please provide us with your comments on this topic.