Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image on back side is opposite #104

Open
priyankasinghal31 opened this issue Sep 16, 2016 · 1 comment
Open

Image on back side is opposite #104

priyankasinghal31 opened this issue Sep 16, 2016 · 1 comment

Comments

@priyankasinghal31
Copy link

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

@jainadit27
Copy link

jainadit27 commented Nov 12, 2017

@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); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants