{"action":"created","issue":{"url":"https://api.github.com/repos/mono/SkiaSharp/issues/133","repository_url":"https://api.github.com/repos/mono/SkiaSharp","labels_url":"https://api.github.com/repos/mono/SkiaSharp/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/mono/SkiaSharp/issues/133/comments","events_url":"https://api.github.com/repos/mono/SkiaSharp/issues/133/events","html_url":"https://github.com/mono/SkiaSharp/issues/133","id":170910513,"number":133,"title":"Canvas rotation does not work correctly","user":{"login":"mihai-iancu","id":20994796,"avatar_url":"https://avatars.githubusercontent.com/u/20994796?v=3","gravatar_id":"","url":"https://api.github.com/users/mihai-iancu","html_url":"https://github.com/mihai-iancu","followers_url":"https://api.github.com/users/mihai-iancu/followers","following_url":"https://api.github.com/users/mihai-iancu/following{/other_user}","gists_url":"https://api.github.com/users/mihai-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/mihai-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihai-iancu/subscriptions","organizations_url":"https://api.github.com/users/mihai-iancu/orgs","repos_url":"https://api.github.com/users/mihai-iancu/repos","events_url":"https://api.github.com/users/mihai-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/mihai-iancu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mono/SkiaSharp/milestones/1","html_url":"https://github.com/mono/SkiaSharp/milestones/1.53.1","labels_url":"https://api.github.com/repos/mono/SkiaSharp/milestones/1/labels","id":1936532,"number":1,"title":"1.53.1","description":"","creator":{"login":"mattleibow","id":1096616,"avatar_url":"https://avatars.githubusercontent.com/u/1096616?v=3","gravatar_id":"","url":"https://api.github.com/users/mattleibow","html_url":"https://github.com/mattleibow","followers_url":"https://api.github.com/users/mattleibow/followers","following_url":"https://api.github.com/users/mattleibow/following{/other_user}","gists_url":"https://api.github.com/users/mattleibow/gists{/gist_id}","starred_url":"https://api.github.com/users/mattleibow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattleibow/subscriptions","organizations_url":"https://api.github.com/users/mattleibow/orgs","repos_url":"https://api.github.com/users/mattleibow/repos","events_url":"https://api.github.com/users/mattleibow/events{/privacy}","received_events_url":"https://api.github.com/users/mattleibow/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"open","created_at":"2016-08-11T10:25:38Z","updated_at":"2016-08-15T13:05:46Z","due_on":"2016-08-17T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-12T16:35:23Z","updated_at":"2016-08-15T15:08:41Z","closed_at":null,"body":"I just started working with SkiaSharp and I have a problem with canvas rotation.\r\nThe code below generates the attached image:\r\n```\r\nusing (SKSurface surface = SKSurface.Create(816, 1056, SKColorType.Bgra8888, SKAlphaType.Premul))\r\n{\r\n    SKCanvas canvas = surface.Canvas;\r\n    SKMatrix m = SKMatrix.MakeTranslation(300, 400);\r\n    canvas.Concat(ref m);\r\n\r\n    m = SKMatrix.MakeScale(400, 200);\r\n    canvas.Concat(ref m);\r\n\r\n    using (SKPaint redPaint = new SKPaint())\r\n    {\r\n        redPaint.Color = new SKColor(255, 0, 0);\r\n        canvas.DrawRect(SKRect.Create(0, 0, 1, 1), redPaint);\r\n    }\r\n\r\n    m = SKMatrix.MakeRotationDegrees(45);\r\n    canvas.Concat(ref m);\r\n\r\n    using (SKPaint bluePaint = new SKPaint())\r\n    {\r\n        bluePaint.Color = new SKColor(0, 0, 255);\r\n        canvas.DrawRect(SKRect.Create(0, 0, 1, 1), bluePaint);\r\n    }\r\n}\r\n```\r\n![image-816x1056x4-red-blue](https://cloud.githubusercontent.com/assets/20994796/17629430/f85c8b1e-60c2-11e6-9bfa-36326a7f1a93.png)\r\nThe blue rectangle instead of being scaled like the red one, it is skewed and scaled equally on both axis.\r\nI'm using the latest version 1.53.0."},"comment":{"url":"https://api.github.com/repos/mono/SkiaSharp/issues/comments/239827350","html_url":"https://github.com/mono/SkiaSharp/issues/133#issuecomment-239827350","issue_url":"https://api.github.com/repos/mono/SkiaSharp/issues/133","id":239827350,"user":{"login":"mattleibow","id":1096616,"avatar_url":"https://avatars.githubusercontent.com/u/1096616?v=3","gravatar_id":"","url":"https://api.github.com/users/mattleibow","html_url":"https://github.com/mattleibow","followers_url":"https://api.github.com/users/mattleibow/followers","following_url":"https://api.github.com/users/mattleibow/following{/other_user}","gists_url":"https://api.github.com/users/mattleibow/gists{/gist_id}","starred_url":"https://api.github.com/users/mattleibow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattleibow/subscriptions","organizations_url":"https://api.github.com/users/mattleibow/orgs","repos_url":"https://api.github.com/users/mattleibow/repos","events_url":"https://api.github.com/users/mattleibow/events{/privacy}","received_events_url":"https://api.github.com/users/mattleibow/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T15:08:41Z","updated_at":"2016-08-15T15:08:41Z","body":"The same thing happens with HTML Canvas: http://jsbin.com/soqigozule/edit?html,output"}}
{"actor":{"display_login":"mattleibow"}}