MatrixHelper MatrixHelper MatrixHelper Class

Provides static helper methods for processing Matrix values. C# and Microsoft Visual Basic code should use members of Matrix instead.

Syntax

Declaration

public sealed class MatrixHelperpublic sealed class MatrixHelperPublic NotInheritable Class MatrixHelper

Properties summary

Gets a static constructed Matrix where the values established are representative of an Identity transform. C# and Microsoft Visual Basic code should use Identity instead.

Methods summary

Creates a new Matrix based on provided initial Matrix data values. C# and Microsoft Visual Basic code should use Matrix constructor instead.

Returns whether the provided Matrix represents an Identity transform. C# and Microsoft Visual Basic code should use IsIdentity instead.

Transforms a provided Matrix using a Point input, and returns a Point result. C# and Microsoft Visual Basic code should use Transform instead.

Properties

  • Identity
    Identity
    Identity
    Identity

    Gets a static constructed Matrix where the values established are representative of an Identity transform. C# and Microsoft Visual Basic code should use Identity instead.

    public static Matrix Identity { get; }public static Matrix Identity { get; }Public Static ReadOnly Property Identity As Matrix

    Property Value

    • A static constructed Matrix where the values established are representative of an Identity transform.

Methods

  • FromElements(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)
    FromElements(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)
    FromElements(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)
    FromElements(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)

    Creates a new Matrix based on provided initial Matrix data values. C# and Microsoft Visual Basic code should use Matrix constructor instead.

    public static Matrix FromElements(System.Double m11,System.Double m12,System.Double m21,System.Double m22,System.Double offsetX,System.Double offsetY)public static Matrix FromElements(System.Double m11,System.Double m12,System.Double m21,System.Double m22,System.Double offsetX,System.Double offsetY)Public Static Function FromElements(m11 As System.Double,m12 As System.Double,m21 As System.Double,m22 As System.Double,offsetX As System.Double,offsetY As System.Double) As Matrix

    Parameters

    • m11
      System.Double
      System.Double
      System.Double

      The initial value of M11 for the created Matrix.

    • m12
      System.Double
      System.Double
      System.Double

      The initial value of M12 for the created Matrix.

    • m21
      System.Double
      System.Double
      System.Double

      The initial value of M21 for the created Matrix.

    • m22
      System.Double
      System.Double
      System.Double

      The initial value of M22 for the created Matrix.

    • offsetX
      System.Double
      System.Double
      System.Double

      The initial value of OffsetX for the created Matrix.

    • offsetY
      System.Double
      System.Double
      System.Double

      The initial value of OffsetY for the created Matrix.

    Returns

  • GetIsIdentity(Windows.UI.Xaml.Media.Matrix)
    GetIsIdentity(Windows.UI.Xaml.Media.Matrix)
    GetIsIdentity(Windows.UI.Xaml.Media.Matrix)
    GetIsIdentity(Windows.UI.Xaml.Media.Matrix)

    Returns whether the provided Matrix represents an Identity transform. C# and Microsoft Visual Basic code should use IsIdentity instead.

    public static bool GetIsIdentity(Windows.UI.Xaml.Media.Matrix target)public static bool GetIsIdentity(Windows.UI.Xaml.Media.Matrix target)Public Static Function GetIsIdentity(target As Windows.UI.Xaml.Media.Matrix) As bool

    Parameters

    Returns

    • bool
      bool
      bool

      true if the Matrix represents an Identity transform; otherwise, false.

  • Transform(Windows.UI.Xaml.Media.Matrix,Windows.Foundation.Point)
    Transform(Windows.UI.Xaml.Media.Matrix,Windows.Foundation.Point)
    Transform(Windows.UI.Xaml.Media.Matrix,Windows.Foundation.Point)
    Transform(Windows.UI.Xaml.Media.Matrix,Windows.Foundation.Point)

    Transforms a provided Matrix using a Point input, and returns a Point result. C# and Microsoft Visual Basic code should use Transform instead.

    public static Point Transform(Windows.UI.Xaml.Media.Matrix target,Windows.Foundation.Point point)public static Point Transform(Windows.UI.Xaml.Media.Matrix target,Windows.Foundation.Point point)Public Static Function Transform(target As Windows.UI.Xaml.Media.Matrix,point As Windows.Foundation.Point) As Point

    Parameters

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Media.dll