{"action":"created","issue":{"url":"https://api.github.com/repos/android-cn/android-discuss/issues/377","repository_url":"https://api.github.com/repos/android-cn/android-discuss","labels_url":"https://api.github.com/repos/android-cn/android-discuss/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/android-cn/android-discuss/issues/377/comments","events_url":"https://api.github.com/repos/android-cn/android-discuss/issues/377/events","html_url":"https://github.com/android-cn/android-discuss/issues/377","id":135397285,"number":377,"title":"图片如何按照图片中心点旋转","user":{"login":"jp1017","id":7868514,"avatar_url":"https://avatars.githubusercontent.com/u/7868514?v=3","gravatar_id":"","url":"https://api.github.com/users/jp1017","html_url":"https://github.com/jp1017","followers_url":"https://api.github.com/users/jp1017/followers","following_url":"https://api.github.com/users/jp1017/following{/other_user}","gists_url":"https://api.github.com/users/jp1017/gists{/gist_id}","starred_url":"https://api.github.com/users/jp1017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jp1017/subscriptions","organizations_url":"https://api.github.com/users/jp1017/orgs","repos_url":"https://api.github.com/users/jp1017/repos","events_url":"https://api.github.com/users/jp1017/events{/privacy}","received_events_url":"https://api.github.com/users/jp1017/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T12:00:25Z","updated_at":"2016-02-22T14:52:24Z","closed_at":null,"body":"```java\r\n    private Bitmap rotateBitmap(Bitmap srcBitmap, float direction) {\r\n        Matrix matrix = new Matrix();\r\n        matrix.reset();\r\n        matrix.setRotate(direction, (float) srcBitmap.getWidth() / 2, (float) srcBitmap.getHeight() / 2);\r\n        matrix.postTranslate(srcBitmap.getWidth(), srcBitmap.getHeight());\r\n        return Bitmap.createBitmap(srcBitmap, 0, 0, srcBitmap.getWidth(),\r\n                srcBitmap.getHeight(), matrix, true);\r\n    }\r\n\r\n一个图片srcBitmap按照其中心旋转direction度，这样写并不能实现，哪里出了问题呢？\r\n"},"comment":{"url":"https://api.github.com/repos/android-cn/android-discuss/issues/comments/187215748","html_url":"https://github.com/android-cn/android-discuss/issues/377#issuecomment-187215748","issue_url":"https://api.github.com/repos/android-cn/android-discuss/issues/377","id":187215748,"user":{"login":"trity1993","id":10337957,"avatar_url":"https://avatars.githubusercontent.com/u/10337957?v=3","gravatar_id":"","url":"https://api.github.com/users/trity1993","html_url":"https://github.com/trity1993","followers_url":"https://api.github.com/users/trity1993/followers","following_url":"https://api.github.com/users/trity1993/following{/other_user}","gists_url":"https://api.github.com/users/trity1993/gists{/gist_id}","starred_url":"https://api.github.com/users/trity1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trity1993/subscriptions","organizations_url":"https://api.github.com/users/trity1993/orgs","repos_url":"https://api.github.com/users/trity1993/repos","events_url":"https://api.github.com/users/trity1993/events{/privacy}","received_events_url":"https://api.github.com/users/trity1993/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T14:52:24Z","updated_at":"2016-02-22T14:52:24Z","body":"试下：android.graphics.Camera"}}