Im trying to rotate a canvas bitmap on a draw session. I haven't been able to do this. When I tried it looks like the entire Win2D canvas rotates and not just the canvas bitmap.
I tried this and it didnt work:
session.Transform *= Matrix3x2.CreateRotation((float)Math.PI / 2, new Vector2(200))
private void Draw(CanvasDrawingSession session, CanvasBitmap canvasImage, float xValue, float yValue, float rotationDegrees)
{
session.Transform = Matrix3x2.CreateScale(1);
session.DrawImage(canvasImage, xValue, yValue);
}