Skip to content

Instantly share code, notes, and snippets.

Created Jun 8, 2018
What would you like to do?
val bitmap = MediaStore.Images.Media.getBitmap(contentResolver, imageUri)
val matrix = Matrix().apply { postRotate(90f) }
val rotatedBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.width, bitmap.height, matrix, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment