Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use canvas.drawBitmap() to fill the screen

How can I fill the screen with texture? I can get screen size and density, also a bitmap size. But what next? should I transform texture with matrix or use special paint? Anything else? Thanks.

like image 396
Pavel Oganesyan Avatar asked Oct 22 '25 16:10

Pavel Oganesyan


1 Answers

How about

Bitmap background = Bitmap.createScaledBitmap
     (YourBitmap, ScreenWidth, ScreenHeight, false);
like image 53
Kevin DiTraglia Avatar answered Oct 25 '25 05:10

Kevin DiTraglia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!