{"action":"created","issue":{"url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/390","repository_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view","labels_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/390/comments","events_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/390/events","html_url":"https://github.com/davemorrissey/subsampling-scale-image-view/issues/390","id":294193817,"number":390,"title":"Problem With Draw Rect Below Nougat(7.0)","user":{"login":"patelkeyur7279","id":36129317,"avatar_url":"https://avatars0.githubusercontent.com/u/36129317?v=4","gravatar_id":"","url":"https://api.github.com/users/patelkeyur7279","html_url":"https://github.com/patelkeyur7279","followers_url":"https://api.github.com/users/patelkeyur7279/followers","following_url":"https://api.github.com/users/patelkeyur7279/following{/other_user}","gists_url":"https://api.github.com/users/patelkeyur7279/gists{/gist_id}","starred_url":"https://api.github.com/users/patelkeyur7279/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patelkeyur7279/subscriptions","organizations_url":"https://api.github.com/users/patelkeyur7279/orgs","repos_url":"https://api.github.com/users/patelkeyur7279/repos","events_url":"https://api.github.com/users/patelkeyur7279/events{/privacy}","received_events_url":"https://api.github.com/users/patelkeyur7279/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-04T12:34:50Z","updated_at":"2018-02-05T01:59:25Z","closed_at":null,"author_association":"NONE","body":"PointF startRect = sourceToViewCoord(data.getStartX(), data.getStartY());\r\nPointF endRect = sourceToViewCoord(data.getEndX(), data.getEndY());\r\n\r\nRectF rectF = new RectF(startRect.x, startRect.y, endRect.x, endRect.y);\r\n\r\nfloat xPos = rectF.centerX();\r\nfloat yPos = rectF.centerY();\r\n\r\nmatrix.reset();\r\nmatrix.setRotate(data.getRotation(), xPos, yPos);\r\ncanvas.setMatrix(matrix);\r\n\r\ncanvas.drawRect(rectF, paint);\r\n\r\n### Expected behaviour\r\n![whatsapp image 2018-02-03 at 6 59 55 pm](https://user-images.githubusercontent.com/36129317/35777526-5dd9003c-09d5-11e8-82ea-9de7730f68cb.jpeg)\r\n\r\nI'm creating indoor navigation system and an above-attached image showing the actual want result.\r\n\r\n### Actual behaviour\r\n\r\n\r\n### Steps to reproduce\r\n\r\n(Include your setup code, and where relevant, your layout XML)\r\n\r\n### Affected devices\r\n\r\nBelow Nougat(7.0) Android version has not worked properly I attached an image below.\r\n(Specific devices, screen densities, SDK versions)\r\n\r\n### Affected images\r\n\r\n(Attach images you have problems with)\r\n![screenshot_1517747101](https://user-images.githubusercontent.com/36129317/35777545-a2d02e9a-09d5-11e8-8f08-c260bef72853.png)\r\n"},"comment":{"url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/comments/362961883","html_url":"https://github.com/davemorrissey/subsampling-scale-image-view/issues/390#issuecomment-362961883","issue_url":"https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/issues/390","id":362961883,"user":{"login":"patelkeyur7279","id":36129317,"avatar_url":"https://avatars0.githubusercontent.com/u/36129317?v=4","gravatar_id":"","url":"https://api.github.com/users/patelkeyur7279","html_url":"https://github.com/patelkeyur7279","followers_url":"https://api.github.com/users/patelkeyur7279/followers","following_url":"https://api.github.com/users/patelkeyur7279/following{/other_user}","gists_url":"https://api.github.com/users/patelkeyur7279/gists{/gist_id}","starred_url":"https://api.github.com/users/patelkeyur7279/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patelkeyur7279/subscriptions","organizations_url":"https://api.github.com/users/patelkeyur7279/orgs","repos_url":"https://api.github.com/users/patelkeyur7279/repos","events_url":"https://api.github.com/users/patelkeyur7279/events{/privacy}","received_events_url":"https://api.github.com/users/patelkeyur7279/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T01:59:25Z","updated_at":"2018-02-05T01:59:25Z","author_association":"NONE","body":"I trying to resolve it manually add some value to sourceToViewCoord(),  but it's not good for all devices and sourceToViewCoord() is return perfect values but image pointF not perfect and below 7.0 android version zoom in and zoom out all rect overlap."}}
{"actor":{"display_login":"patelkeyur7279"}}