com.aspose.imaging.brushes
Class LinearMulticolorGradientBrush

java.lang.Object
  extended by com.aspose.imaging.DisposableObject
      extended by com.aspose.imaging.Brush
          extended by com.aspose.imaging.brushes.TransformBrush
              extended by com.aspose.imaging.brushes.LinearGradientBrushBase
                  extended by com.aspose.imaging.brushes.LinearMulticolorGradientBrush

public final class LinearMulticolorGradientBrush
extends LinearGradientBrushBase

Represents a Brush with linear gradient defined by multiple colors and appropriate positions. This class cannot be inherited.


Constructor Summary
LinearMulticolorGradientBrush()
           Initializes a new instance of the LinearMulticolorGradientBrush class with default parameters.
LinearMulticolorGradientBrush(PointF point1, PointF point2)
           Initializes a new instance of the LinearMulticolorGradientBrush class with the specified points.
LinearMulticolorGradientBrush(Point point1, Point point2)
           Initializes a new instance of the LinearMulticolorGradientBrush class with the specified points.
LinearMulticolorGradientBrush(RectangleF rect, float angle)
           Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
LinearMulticolorGradientBrush(RectangleF rect, float angle, boolean isAngleScalable)
           Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
LinearMulticolorGradientBrush(Rectangle rect, float angle)
           Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
LinearMulticolorGradientBrush(Rectangle rect, float angle, boolean isAngleScalable)
           Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.
 
Method Summary
 ColorBlend getInterpolationColors()
           Gets a ColorBlend that defines a multicolor linear gradient.
 void setInterpolationColors(ColorBlend value)
           Sets a ColorBlend that defines a multicolor linear gradient.
 
Methods inherited from class com.aspose.imaging.brushes.LinearGradientBrushBase
getAngle, getGammaCorrection, getRectangle, isAngleScalable, isAngleScalable, setAngle, setGammaCorrection, setRectangle_Rename_Namesake
 
Methods inherited from class com.aspose.imaging.brushes.TransformBrush
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransform
 
Methods inherited from class com.aspose.imaging.Brush
deepClone, getOpacity, setOpacity
 
Methods inherited from class com.aspose.imaging.DisposableObject
dispose, getDisposed, releaseManagedResources, releaseUnmanagedResources, verifyNotDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush()

Initializes a new instance of the LinearMulticolorGradientBrush class with default parameters. The starting color is black, the ending color is white, the angle is 45 degrees and the rectangle is located in (0,0) with size (1,1).


LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush(PointF point1,
                                     PointF point2)

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

Parameters:
point1 - A PointF structure that represents the starting point of the linear gradient.
point2 - A PointF structure that represents the endpoint of the linear gradient.

LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush(Point point1,
                                     Point point2)

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

Parameters:
point1 - A Point structure that represents the starting point of the linear gradient.
point2 - A Point structure that represents the endpoint of the linear gradient.

LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush(RectangleF rect,
                                     float angle)

Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

Parameters:
rect - A RectangleF structure that specifies the bounds of the linear gradient.
angle - The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.

LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush(RectangleF rect,
                                     float angle,
                                     boolean isAngleScalable)

Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

Parameters:
rect - A RectangleF structure that specifies the bounds of the linear gradient.
angle - The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.
isAngleScalable - if set to true the angle is changed during trasnformations with this LinearMulticolorGradientBrush.

LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush(Rectangle rect,
                                     float angle)

Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

Parameters:
rect - A RectangleF structure that specifies the bounds of the linear gradient.
angle - The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.

LinearMulticolorGradientBrush

public LinearMulticolorGradientBrush(Rectangle rect,
                                     float angle,
                                     boolean isAngleScalable)

Creates a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

Parameters:
rect - A RectangleF structure that specifies the bounds of the linear gradient.
angle - The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.
isAngleScalable - if set to true the angle is changed during trasnformations with this LinearMulticolorGradientBrush.
Method Detail

getInterpolationColors

public ColorBlend getInterpolationColors()

Gets a ColorBlend that defines a multicolor linear gradient.

Value: A ColorBlend that defines a multicolor linear gradient.


setInterpolationColors

public void setInterpolationColors(ColorBlend value)

Sets a ColorBlend that defines a multicolor linear gradient.

Value: A ColorBlend that defines a multicolor linear gradient.