Skip to content

Instantly share code, notes, and snippets.

@tenadavila
Created June 22, 2013 10:50
Show Gist options
  • Save tenadavila/5840422 to your computer and use it in GitHub Desktop.
Save tenadavila/5840422 to your computer and use it in GitHub Desktop.
//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