Image on back side is opposite
priyankasinghal31 opened this issue · comments
Hi Harism,
The code is beautifully written.
But i added letter images like a,b,c,d but the images on back pages are coming opposite and not straight. Suggest some change in code so that i can do it
@priyankasinghal31 You can flip the bitmap before adding to bitmap list.
public static Bitmap flip(Bitmap source) { if(source == null) return null; Matrix matrix = new Matrix(); matrix.preScale(-1, 1); return Bitmap.createBitmap(source, 0, 0, source.getWidth(), source.getHeight(), matrix, true); }