SolidBrush
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.drawing.Brush
public class SolidBrush extends Brush
Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths.
Constructors
Constructor | Description |
---|---|
SolidBrush(Color color) | Initializes a new instance of the SolidBrush class. |
Methods
Method | Description |
---|---|
getColor() | Gets the color of this SolidBrush object. |
setColor(Color value) | Sets the color of this SolidBrush object. |
deepClone() | Creates an exact copy of this SolidBrush object. |
SolidBrush(Color color)
public SolidBrush(Color color)
Initializes a new instance of the SolidBrush class.
Parameters:
Parameter | Type | Description |
---|---|---|
color | Color | A Color structure that represents the color of this brush. |
getColor()
public final Color getColor()
Gets the color of this SolidBrush object.
Returns: Color - the color of this SolidBrush object.
setColor(Color value)
public final void setColor(Color value)
Sets the color of this SolidBrush object.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | the color of this SolidBrush object. |
deepClone()
public Object deepClone()
Creates an exact copy of this SolidBrush object.
Returns: java.lang.Object - The SolidBrush object that this method creates.