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






Matrix.Rotate

  

Imports System
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Text
Imports System.Drawing.Imaging

Public Class MainClass

  Shared Sub Main()
    Dim m As Matrix = New Matrix()
    m.Rotate(90, MatrixOrder.Append)
    m.Translate(7, 12, MatrixOrder.Append)
    Dim p() As Point = {New Point(20, 45)}

    Console.WriteLine(p.GetValue(0).ToString())

    m.TransformPoints(p)

    Console.WriteLine(p.GetValue(0).ToString())
  End Sub
  
End Class

   
    
  








Related examples in the same category

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