Class TextureBrushStyle
Defines the style which allows to fill shapes with texture
Inheritance
TextureBrushStyle
Namespace:
Assembly: .dll
Syntax
public class TextureBrushStyle extends BrushStyle
Constructors
TextureBrushStyle(Bitmap texture)
Declaration
public TextureBrushStyle(Bitmap texture)
Parameters
Type |
Name |
Description |
android.graphics.Bitmap |
texture |
The bitmap with texture
|
Fields
texture
Declaration
public final Bitmap texture
Field Value
Type |
Description |
android.graphics.Bitmap |
|
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
Overrides
getColor()
Gets the color for this PenStyle
Declaration
Returns
Overrides
hashCode()
Declaration
Returns
Overrides
initPaint(Paint paint, float opacity, int x, int y, int width, int height)
Init a Paint instance with values provided by this brush style
Declaration
public void initPaint(Paint paint, float opacity, int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
android.graphics.Paint |
paint |
|
float |
opacity |
|
int |
x |
|
int |
y |
|
int |
width |
|
int |
height |
|
Overrides
isVisible()
Gets whether this style is visible
Declaration
public boolean isVisible()
Returns
Overrides