public class TextureBrush extends Brush
| Constructor and Description |
|---|
TextureBrush()
Initializes a new
TextureBrush instance. |
TextureBrush(android.graphics.Bitmap image)
Initializes a new
TextureBrush instance
with the specified pattern. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the brush.
|
android.graphics.Paint |
createPaint(android.graphics.RectF bounds)
Creates android.graphics.Paint object corresponding to this brush.
|
android.graphics.Bitmap |
getTexture() |
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
void |
setTexture(android.graphics.Bitmap value) |
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public TextureBrush()
TextureBrush instance.public TextureBrush(android.graphics.Bitmap image)
TextureBrush instance
with the specified pattern.public java.lang.Object clone()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic android.graphics.Bitmap getTexture()
public void setTexture(android.graphics.Bitmap value)
public android.graphics.Paint createPaint(android.graphics.RectF bounds)
BrushcreatePaint in class Brushbounds - The bounds of the area where this brush will be applied.