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.