public class BitmapShader extends Shader
Shader.TileMode
Modifier and Type | Field and Description |
---|---|
Bitmap |
mBitmap
Prevent garbage collection.
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected Shader |
copy() |
copyLocalMatrix, finalize, getLocalMatrix, getNativeInstance, init, setLocalMatrix
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.