Android Tile Bitmap

Posted by Rich Lawrence on Stack Overflow See other posts from Stack Overflow or by Rich Lawrence
Published on 2009-08-21T09:56:08Z Indexed on 2010/03/22 6:21 UTC
Read the original article Hit count: 487

Filed under:
|

I'm trying to load a bitmap in Android which I want to tile. I'm currently using the following in my view to display a bitmap:

canvas.drawBitmap(bitmap, srcRect, destRect, null)

I essentially want to use this bitmap as a background image in my app and would like to repeat the bitmap in both the X and Y directions.

I've seen the TileMode.REPEAT constant for the BitmapShader class but am unsure if this is to do with repeating he actual bitmap or to do with applying a filter to the bitmap.

© Stack Overflow or respective owner

Related posts about android

Related posts about bitmap