IXRMatrix (Windows Embedded CE 6.0)
1/6/2010
This class represents a two-dimensional plane that has four flexible quadrants.
Syntax
class IXRMatrix : public IXRDependencyObject
Methods
Method | Description |
---|---|
Retrieves the multiplier value that is applied to the points in the first row and first column of this matrix. |
|
Retrieves the multiplier value that is applied to the points in the first row and second column of this matrix. |
|
Retrieves the multiplier value that is applied to the points in the second row and first column of this matrix. |
|
Retrieves the multiplier value that is applied to the points in the second row and second column of this matrix. |
|
Retrieves the amount by which this matrix is moved along the x-axis, offset from the upper-left coordinate. |
|
Retrieves the amount by which this matrix is moved down the y-axis, offset from the upper-left coordinate. |
|
Retrieves a value that indicates whether this matrix is an identity matrix. |
|
Sets the multiplier value to apply to the points in the first row and first column of this matrix. |
|
Sets the multiplier value to apply to the points in the first row and second column of this matrix. |
|
Sets the multiplier value to apply to the points in the second row and first column of this matrix. |
|
Sets the multiplier value to apply to the points in the second row and second column of this matrix. |
|
Sets the amount by which to move this matrix along the x-axis, offset from the upper-left coordinate. |
|
Sets the amount by which to move this matrix down the y-axis, offset from the upper-left coordinate. |
|
Transforms the specified source x,y coordinate by using the math defined in this matrix and returns the target x,y coordinate. |
Remarks
You can use the IXRMatrix object to define a custom transformation that you can apply to a UI object. IXRMatrix lets you combine the effects available in IXRScaleTransform, IXRSkewTransform, IXRTranslateTransform, and IXRRotateTransform. You can also control the intensity of each effect by using multiplier values. You can create a unique transformation for an object by using different multiplier values for M11, M12, M21, and M22. Then, you can set this IXRMatrix instance as the value of an IXRMatrixTransform, which is in turn set for a particular UI object.
You can create a custom IXRMatrix object that defines a matrix transformation, and supply it in a call to IXRMatrixTransform::SetMatrix.
As an alternative to performing custom matrix mathematics by using IXRMatrix, you can combine transformations by creating an IXRTransformGroup object and apply multiple transformations to a UI object.
You can also define a matrix as an attribute in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.
Inheritance Hierarchy
IXRMatrix
.NET Framework Equivalent
System.Windows.Media.Matrix
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |
See Also
Reference
Classes for Visual Appearance and Behavior
IXRMatrixTransform