{"action":"closed","issue":{"url":"https://api.github.com/repos/vinc3m1/RoundedImageView/issues/8","labels_url":"https://api.github.com/repos/vinc3m1/RoundedImageView/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/vinc3m1/RoundedImageView/issues/8/comments","events_url":"https://api.github.com/repos/vinc3m1/RoundedImageView/issues/8/events","html_url":"https://github.com/vinc3m1/RoundedImageView/issues/8","id":12310087,"number":8,"title":"CENTER_CROP is not precisely centered if border_width > 0 ","user":{"login":"yeusin","id":3938127,"avatar_url":"https://avatars.githubusercontent.com/u/3938127?v=3","gravatar_id":"","url":"https://api.github.com/users/yeusin","html_url":"https://github.com/yeusin","followers_url":"https://api.github.com/users/yeusin/followers","following_url":"https://api.github.com/users/yeusin/following{/other_user}","gists_url":"https://api.github.com/users/yeusin/gists{/gist_id}","starred_url":"https://api.github.com/users/yeusin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeusin/subscriptions","organizations_url":"https://api.github.com/users/yeusin/orgs","repos_url":"https://api.github.com/users/yeusin/repos","events_url":"https://api.github.com/users/yeusin/events{/privacy}","received_events_url":"https://api.github.com/users/yeusin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vinc3m1","id":498852,"avatar_url":"https://avatars.githubusercontent.com/u/498852?v=3","gravatar_id":"","url":"https://api.github.com/users/vinc3m1","html_url":"https://github.com/vinc3m1","followers_url":"https://api.github.com/users/vinc3m1/followers","following_url":"https://api.github.com/users/vinc3m1/following{/other_user}","gists_url":"https://api.github.com/users/vinc3m1/gists{/gist_id}","starred_url":"https://api.github.com/users/vinc3m1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinc3m1/subscriptions","organizations_url":"https://api.github.com/users/vinc3m1/orgs","repos_url":"https://api.github.com/users/vinc3m1/repos","events_url":"https://api.github.com/users/vinc3m1/events{/privacy}","received_events_url":"https://api.github.com/users/vinc3m1/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2013-03-22T08:20:52Z","updated_at":"2015-10-19T00:21:55Z","closed_at":"2015-10-19T00:21:55Z","body":"It should be translate along with border_width to be drawn correctly.\r\n\r\nRoundedDrawable.java\r\n\r\nprivate void setMatrix() {\r\n...\r\n...\r\nCENTER_CROP:\r\n...\r\n...\r\nmShaderMatrix.postTranslate((int) (dx + 0.5f) + mBorderWidth, (int) (dy + 0.5f) + mBorderWidth); // Translate by border_width to both x, y."}}