Packages

 

com.aspose.imaging.brushes

Class PathMulticolorGradientBrush

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public final class PathMulticolorGradientBrush
    extends PathGradientBrushBase

    Encapsulates a Aspose.Imaging.Brush object with a gradient. This class cannot be inherited.

    • Constructor Detail

      • PathMulticolorGradientBrush

        public PathMulticolorGradientBrush(PointF[] points)

        Initializes a new instance of the PathMulticolorGradientBrush class with the specified points.

        Parameters:
        points - An array of Aspose.Imaging.PointF structures that represents the points that make up the vertices of the path.
      • PathMulticolorGradientBrush

        public PathMulticolorGradientBrush(PointF[] points,
                                           int wrapMode)

        Initializes a new instance of the PathMulticolorGradientBrush class with the specified points and wrap mode.

        Parameters:
        points - An array of Aspose.Imaging.PointF structures that represents the points that make up the vertices of the path.
        wrapMode - A Aspose.Imaging.WrapMode that specifies how fills drawn with this PathMulticolorGradientBrush are tiled.
      • PathMulticolorGradientBrush

        public PathMulticolorGradientBrush(Point[] points)

        Initializes a new instance of the PathMulticolorGradientBrush class with the specified points.

        Parameters:
        points - An array of Aspose.Imaging.Point structures that represents the points that make up the vertices of the path.
      • PathMulticolorGradientBrush

        public PathMulticolorGradientBrush(Point[] points,
                                           int wrapMode)

        Initializes a new instance of the PathMulticolorGradientBrush class with the specified points and wrap mode.

        Parameters:
        points - An array of Aspose.Imaging.Point structures that represents the points that make up the vertices of the path.
        wrapMode - A Aspose.Imaging.WrapMode that specifies how fills drawn with this PathMulticolorGradientBrush are tiled.
      • PathMulticolorGradientBrush

        public PathMulticolorGradientBrush(GraphicsPath path)

        Initializes a new instance of the PathMulticolorGradientBrush class with the specified path.

        Parameters:
        path - The GraphicsPath that defines the area filled by this PathMulticolorGradientBrush.
    • Method Detail

      • getInterpolationColors

        public ColorBlend getInterpolationColors()

        Gets or sets a com.aspose.imaging.ColorBlend that defines a multicolor linear gradient.

        Value: A com.aspose.imaging.ColorBlend that defines a multicolor linear gradient.
      • setInterpolationColors

        public void setInterpolationColors(ColorBlend value)

        Gets or sets a com.aspose.imaging.ColorBlend that defines a multicolor linear gradient.

        Value: A com.aspose.imaging.ColorBlend that defines a multicolor linear gradient.