HatchBrush
Inheritance: java.lang.Object, com.aspose.drawing.Brush
public final class HatchBrush extends Brush
Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.
Constructors
| Constructor | Description |
|---|---|
| HatchBrush(int hatchstyle, Color foreColor) | Initializes a new instance of the HatchBrush class with the specified HatchStyle(.getHatchStyle) enumeration and foreground color. |
| HatchBrush(int hatchstyle, Color foreColor, Color backColor) | Initializes a new instance of the HatchBrush class with the specified HatchStyle(.getHatchStyle) enumeration, foreground color, and background color. |
Methods
| Method | Description |
|---|---|
| getHatchStyle() | Gets the hatch style of this HatchBrush object. |
| getForegroundColor() | Gets the color of hatch lines drawn by this HatchBrush object. |
| getBackgroundColor() | Gets the color of spaces between the hatch lines drawn by this HatchBrush object. |
| deepClone() | Creates an exact copy of this HatchBrush object. |
HatchBrush(int hatchstyle, Color foreColor)
public HatchBrush(int hatchstyle, Color foreColor)
Initializes a new instance of the HatchBrush class with the specified HatchStyle(.getHatchStyle) enumeration and foreground color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hatchstyle | int | One of the HatchStyle(.getHatchStyle) values that represents the pattern drawn by this HatchBrush. |
| foreColor | Color | The Color structure that represents the color of lines drawn by this HatchBrush. |
HatchBrush(int hatchstyle, Color foreColor, Color backColor)
public HatchBrush(int hatchstyle, Color foreColor, Color backColor)
Initializes a new instance of the HatchBrush class with the specified HatchStyle(.getHatchStyle) enumeration, foreground color, and background color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hatchstyle | int | One of the HatchStyle(.getHatchStyle) values that represents the pattern drawn by this HatchBrush. |
| foreColor | Color | The Color structure that represents the color of lines drawn by this HatchBrush. |
| backColor | Color | The Color structure that represents the color of spaces between the lines drawn by this HatchBrush. |
getHatchStyle()
public int getHatchStyle()
Gets the hatch style of this HatchBrush object.
Returns: int - the hatch style of this HatchBrush object.
getForegroundColor()
public Color getForegroundColor()
Gets the color of hatch lines drawn by this HatchBrush object.
Returns: Color - the color of hatch lines drawn by this HatchBrush object.
getBackgroundColor()
public Color getBackgroundColor()
Gets the color of spaces between the hatch lines drawn by this HatchBrush object.
Returns: Color - the color of spaces between the hatch lines drawn by this HatchBrush object.
deepClone()
public Object deepClone()
Creates an exact copy of this HatchBrush object.
Returns: java.lang.Object - The HatchBrush this method creates, cast as an object.