Matrix.Multiply : Matrix « System.Drawing.Drawing2D « VB.Net by API






Matrix.Multiply

  

Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms

public class Test
   public Shared Sub Main
        Dim X As New Matrix(2.0F, 1.0F, 3.0F, 1.0F, 0.0F, 4.0F)
        Dim Y As New Matrix(0.0F, 1.0F, -1.0F, 0.0F, 0.0F, 0.0F)

        X.Multiply(Y, MatrixOrder.Append)
        ' Read the result Matrix
        Dim i As Integer
        For i = 0 To X.Elements.Length - 1
            Console.WriteLine(X.Elements(i).ToString())
        Next i


   End Sub
End class

   
    
  








Related examples in the same category

1.Matrix.Elements
2.Matrix.Invert
3.Matrix.Rotate
4.Matrix.RotateAt
5.Matrix.Shear
6.Matrix.TransformPoints
7.Matrix.Translate(Int x, Int y)