List of utility methods to do Bitmap Reflect
Bitmap | createReflectionImageWithOrigin(Bitmap bitmap) create Reflection Image With Origin final int reflectionGap = 4; int width = bitmap.getWidth(); int height = bitmap.getHeight(); Matrix matrix = new Matrix(); matrix.preScale(1, -1); Bitmap reflectionImage = Bitmap.createBitmap(bitmap, 0, height / 2, width, height / 2, matrix, false); Bitmap bitmapWithReflection = Bitmap.createBitmap(width, ... |
Bitmap | createReflectionImageWithOrigin(Bitmap bitmap) create Reflection Image With Origin final int reflectionGap = 4; int width = bitmap.getWidth(); int height = bitmap.getHeight(); Matrix matrix = new Matrix(); matrix.preScale(1, -1); Bitmap reflectionImage = Bitmap.createBitmap(bitmap, 0, height / 2, width, height / 2, matrix, false); Bitmap bitmapWithReflection = Bitmap.createBitmap(width, ... |
Bitmap | toReflectionBitmap(Bitmap bitmap) to Reflection Bitmap if (bitmap == null) { return null; try { int reflectionGap = 1; int width = bitmap.getWidth(); int height = bitmap.getHeight(); Matrix matrix = new Matrix(); ... |
Bitmap | toReflectionBitmap(Bitmap bitmap) to Reflection Bitmap if (bitmap == null) { return null; try { int reflectionGap = 1; int width = bitmap.getWidth(); int height = bitmap.getHeight(); Matrix matrix = new Matrix(); ... |
Bitmap | createReflectionImageWithOrigin(Bitmap bitmap) create Reflection Image With Origin final int reflectionGap = 4; int w = bitmap.getWidth(); int h = bitmap.getHeight(); Matrix matrix = new Matrix(); matrix.preScale(1, -1); Bitmap reflectionImage = Bitmap.createBitmap(bitmap, 0, h / 2, w, h / 2, matrix, false); Bitmap bitmapWithReflection = Bitmap.createBitmap(w, (h + h / 2), ... |