GDI+ transformations

  • Thread starter Thread starter Jan Warning
  • Start date Start date
J

Jan Warning

Hi all,

I expected the following 2 pieces of code to give the same result, but they
don't
Can anybody explain me why?

Dim wissel As Graphics
Dim Matrix As New Matrix
wissel = pe.Graphics
Matrix.Scale(-1,1)
Matrix.Translate(90,0,Matrixorder.Append)
Wissel.Transform = Matrix
MyBase.OnPaint(pe)


Dim wissel As Graphics
wissel = pe.Graphics
wissel.ScaleTransform(-1,1)
Wissel.TranslateTransform = (90,0,MatrixOrder.Append)
MyBase.OnPaint(pe)


Thanks in advance

Jan Warning
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top