public class BitmapShader extends Shader
Shader.TileMode
Modifier and Type | Field and Description |
---|---|
Bitmap |
mBitmap
Prevent garbage collection.
|
native_instance, native_shader
Constructor and Description |
---|
BitmapShader(Bitmap bitmap,
Shader.TileMode tileX,
Shader.TileMode tileY)
Call this to create a new shader that will draw with a bitmap.
|
public final Bitmap mBitmap
public BitmapShader(Bitmap bitmap, Shader.TileMode tileX, Shader.TileMode tileY)
bitmap
- The bitmap to use inside the shadertileX
- The tiling mode for x to draw the bitmap in.tileY
- The tiling mode for y to draw the bitmap in.