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.
| Constructor and Description |
|---|
HatchBrush(int hatchstyle,
Color foreColor)
Initializes a new instance of the
HatchBrush class with the specified
HatchStyle(HatchBrush.getHatchStyle()) enumeration and foreground color. |
HatchBrush(int hatchstyle,
Color foreColor,
Color backColor)
Initializes a new instance of the
HatchBrush class with the
specified HatchStyle(HatchBrush.getHatchStyle()) enumeration, foreground color, and background color. |
| Modifier and Type | Method and Description |
|---|---|
Object |
deepClone()
Creates an exact copy of this
HatchBrush object. |
Color |
getBackgroundColor()
Gets the color of spaces between the hatch lines drawn by this
HatchBrush object. |
Color |
getForegroundColor()
Gets the color of hatch lines drawn by this
HatchBrush object. |
int |
getHatchStyle()
Gets the hatch style of this
HatchBrush object. |
public HatchBrush(int hatchstyle,
Color foreColor)
Initializes a new instance of the HatchBrush class with the specified
HatchStyle(HatchBrush.getHatchStyle()) enumeration and foreground color.
hatchstyle - One of the HatchStyle(HatchBrush.getHatchStyle()) values that represents the pattern drawn
by this HatchBrush.foreColor - The Color structure that represents the color of lines
drawn by this HatchBrush.public HatchBrush(int hatchstyle,
Color foreColor,
Color backColor)
Initializes a new instance of the HatchBrush class with the
specified HatchStyle(HatchBrush.getHatchStyle()) enumeration, foreground color, and background color.
hatchstyle - One of the HatchStyle(HatchBrush.getHatchStyle()) values that represents the pattern drawn
by this HatchBrush.foreColor - The Color structure that represents the color of lines drawn
by this HatchBrush.backColor - The Color structure that represents the color of spaces between
the lines drawn by this HatchBrush.public int getHatchStyle()
Gets the hatch style of this HatchBrush object.
HatchBrush object.public Color getForegroundColor()
Gets the color of hatch lines drawn by this HatchBrush object.
HatchBrush object.public Color getBackgroundColor()
Gets the color of spaces between the hatch lines drawn by this HatchBrush object.
HatchBrush object.public Object deepClone()
Creates an exact copy of this HatchBrush object.
deepClone in class BrushHatchBrush this method creates, cast as an object.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.