Forum Xamarin.Android

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.