Packages

 

com.aspose.psd.brushes

Class HatchBrush



  • 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 Detail

      • HatchBrush

        public HatchBrush()
    • Method Detail

      • getForegroundColor

        public Color getForegroundColor()

        Gets the color of hatch lines.

        Returns:
        The color of hatch lines.
      • setForegroundColor

        public void setForegroundColor(Color value)

        Sets the color of hatch lines.

        Parameters:
        value - The color of hatch lines.
      • getBackgroundColor

        public Color getBackgroundColor()

        Gets the color of spaces between the hatch lines.

        Returns:
        The color of spaces between the hatch lines.
      • setBackgroundColor

        public void setBackgroundColor(Color value)

        Sets the color of spaces between the hatch lines.

        Parameters:
        value - The color of spaces between the hatch lines.
      • getHatchStyle

        public int getHatchStyle()

        Gets the hatch style of this brush.

      • setHatchStyle

        public void setHatchStyle(int value)

        Sets the hatch style of this brush.