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

Question: resizeBitmap #19

Open
tigerss opened this issue Jun 19, 2020 · 1 comment
Open

Question: resizeBitmap #19

tigerss opened this issue Jun 19, 2020 · 1 comment

Comments

@tigerss
Copy link

tigerss commented Jun 19, 2020

Hi, from the source code it seems that when the DrawView size is changed the image bitmap is resized. I think it's possible to directly draw the original scaled bitmap on Canvas like you did in resizeBitmap

canvas.drawBitmap(bitmap, transformation, paint);

Is there any reason to create another bitmap from the original one for resizing?

@brittle123
Copy link

@tigerss how to get original image's width and height ?

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