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 and Description |
---|
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)
Initializes a new instance of the
LinearMulticolorGradientBrush class based on a rectangle and an orientation angle. |
LinearMulticolorGradientBrush(RectangleF rect,
float angle,
boolean isAngleScalable)
Initializes a new instance of the
LinearMulticolorGradientBrush class based on a rectangle and an orientation angle. |
LinearMulticolorGradientBrush(Rectangle rect,
float angle)
Initializes a new instance of the
LinearMulticolorGradientBrush class based on a rectangle and an orientation angle. |
LinearMulticolorGradientBrush(Rectangle rect,
float angle,
boolean isAngleScalable)
Initializes a new instance of the
LinearMulticolorGradientBrush class based on a rectangle and an orientation angle. |
Modifier and Type | Method and Description |
---|---|
ColorBlend |
getInterpolationColors()
Gets or sets a
ColorBlend that defines a multicolor linear gradient. |
void |
setInterpolationColors(ColorBlend value)
Gets or sets a
ColorBlend that defines a multicolor linear gradient. |
getAngle, getGammaCorrection, getRectangle, isAngleScalable, setAngle, setAngleScalable, setGammaCorrection, setRectangle
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransform
deepClone, getOpacity, setOpacity
dispose, getDisposed
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).
public LinearMulticolorGradientBrush(Point point1, Point point2)
Initializes a new instance of the LinearMulticolorGradientBrush
class with the specified points.
public LinearMulticolorGradientBrush(PointF point1, PointF point2)
Initializes a new instance of the LinearMulticolorGradientBrush
class with the specified points.
public LinearMulticolorGradientBrush(Rectangle rect, float angle)
Initializes a new instance of the LinearMulticolorGradientBrush
class based on a rectangle and an orientation angle.
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.public LinearMulticolorGradientBrush(RectangleF rect, float angle)
Initializes a new instance of the LinearMulticolorGradientBrush
class based on a rectangle and an orientation angle.
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.public LinearMulticolorGradientBrush(Rectangle rect, float angle, boolean isAngleScalable)
Initializes a new instance of the LinearMulticolorGradientBrush
class based on a rectangle and an orientation angle.
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 transformations with this LinearMulticolorGradientBrush
.public LinearMulticolorGradientBrush(RectangleF rect, float angle, boolean isAngleScalable)
Initializes a new instance of the LinearMulticolorGradientBrush
class based on a rectangle and an orientation angle.
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 transformations with this LinearMulticolorGradientBrush
.public final ColorBlend getInterpolationColors()
Gets or sets a ColorBlend
that defines a multicolor linear gradient.
ColorBlend
that defines a multicolor linear gradient.public final void setInterpolationColors(ColorBlend value)
Gets or sets a ColorBlend
that defines a multicolor linear gradient.
ColorBlend
that defines a multicolor linear gradient.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.