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
Post a Comment