Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Drawing a matrix at certain coordinates

Hello,

I'm using Matrix to draw a bitmap that uses ISensorEventListener to rotate it. This all works fine but i can't get it to draw at certain coordinates:

canvas.DrawCircle(x, y, 50, blue); //on these coordinates schould the bitmap come

Matrix matrix2 = new Matrix();
    matrix2.PostTranslate(-x, -y);
    matrix2.PostScale(this.scale, this.scale);
    matrix2.PostRotate(-this.currentangle);
    matrix2.PostTranslate(this.Width / 2, this.Height / 2);

canvas.DrawBitmap(this.angle, matrix2, red);

Answers

  • jezhjezh Member, Xamarin Team Xamurai

    Could you please post a basic demo so that we can test with it?

Sign In or Register to comment.