Microsoft DirectX 9.0 SDK Update (October 2004)

Sprite.Transform Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets a Matrix object.

Definition

Visual Basic .NET Public Property Transform As Matrix
C# public Matrix Transform { get; set; }
Managed C++ public: __property Matrix get_Transform();
public: __property void set_Transform(Matrix);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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