Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private fun skewBitmap(src: Bitmap, xSkew: Float, ySkew: Float): Bitmap {
- val xCoordinates = 0
- val yCoordinates = 0
- val matrix = Matrix()
- matrix.postSkew(xSkew, ySkew)
- return Bitmap.createBitmap(src, xCoordinates, yCoordinates, src.width, src.height, matrix, true)
- }
Add Comment
Please, Sign In to add comment