Class BrushStyle
Defines a base class for specifying 2D brush style used to paint fill on the IRenderSurface
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class BrushStyle extends Style
Constructors
BrushStyle()
Declaration
public BrushStyle()
Methods
getColor()
Gets the color for this PenStyle
Declaration
public abstract int getColor()
Returns
Type | Description |
---|---|
int | The color for this PenStyle |
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 abstract void initPaint(Paint paint, float opacity, int x, int y, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Paint | paint | The Paint to init |
float | opacity | Opacity to use |
int | x | The X coordinates of area where Paint will be drawn |
int | y | The Y coordinates of area where Paint will be drawn |
int | width | The width of area where Paint will be drawn |
int | height | The height of area where Paint will be drawn |
initPaint(Paint paint, int x, int y, int width, int height)
Init a Paint instance with values provided by this brush style
Declaration
public final void initPaint(Paint paint, int x, int y, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Paint | paint | The Paint to init |
int | x | The X coordinates of area where Paint will be drawn |
int | y | The Y coordinates of area where Paint will be drawn |
int | width | The width of area where Paint will be drawn |
int | height | The height of area where Paint will be drawn |