Created
June 22, 2013 10:50
-
-
Save tenadavila/5840422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The shader that renders the Bitmap | |
BitmapShader fillBMPshader; | |
//Initialize the BitmapShader with the Bitmap object and set the texture tile mode | |
fillBMPshader = new BitmapShader(color, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); | |
//Initialize the fillPaint object | |
pCell = new Paint(); | |
pCell.setStyle(Paint.Style.FILL); | |
//Assign the 'fillBMPshader' to this paint | |
pCell.setShader(fillBMPshader); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment