Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Drawing a matrix at certain coordinates


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.PostTranslate(this.Width / 2, this.Height / 2);

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


  • 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.