android - How to make a background image fill the canvas? -


hello new android , have quick question. making animation using bitmaps , drawing them canvas using ondraw(). trying draw background canvas made in photoshop. uploaded drawable , decoded bitmap added ondraw method. draws, doesn't fill entire canvas want to. suggestions , or fixes? thank much, looked around , saw converting bitmap image view didn't understand well.

use drawbitmap(bitmap bitmap, rect src, rectf dst, paint paint) rect source entire bitmap (from 0,0 width, height) , dest entire canvas. stretch bitmap fill canvas. warned can cause aspect ratio off and/or issues fuzziness or blockiness.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -