What is the equivalent of matrix.setScale(-1, 1) under delphi?

  

In android, we can do matrix.setScale(-1, 1); to FLIP_HORIZONTAL an image. I try to do the same under delphi like :

aMatrix := Canvas.Matrix * TMatrix.CreateScaling(-1, 1);
Canvas.SetMatrix(aMatrix);

but it’s not work 🙁 What did i miss ? How can i FLIP_HORIZONTAL an image in delphi (inside the canvas, so playing with the matrix)

Comments are closed.