Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX SDK
Namespaces
Classes
Sprite
Properties
 Sprite.Transform Property

  Switch on low bandwidth view
Language: Visual BasicC#C++JScript(Show All)
Sprite.Transform Property (Microsoft.DirectX.Direct3D)

Retrieves or sets a Matrix object.

Definition

Visual Basic Public Property Transform As Matrix
C# public Matrix Transform { get; set; }
C++ public:
property Matrix Transform {
        Matrix get();
        void set(Matrix value);
}
JScript public function get Transform() : Matrix
public function set Transform(Matrix);

Property Value

Microsoft.DirectX.Matrix
A Matrix object used to transform a Sprite object.

This property is read/write. 

Remarks

The following C# code fragment demonstrates the use of Transform.

              [C#]
              
using Microsoft.DirectX.Direct3D; Sprite s = new Sprite(device); Matrix m = new Matrix(); // Set Sprite.Transform s.Transform = m; // Retrieve the matrix m = s.Transform;

Exceptions
Direct3DXException Occurs if the method fails.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker