|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.DisposableObject
com.aspose.imaging.Brush
com.aspose.imaging.brushes.TransformBrush
com.aspose.imaging.brushes.LinearGradientBrushBase
com.aspose.imaging.brushes.LinearMulticolorGradientBrush
public final class LinearMulticolorGradientBrush
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 |
---|
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(PointF point1, PointF point2)
Initializes a new instance of the LinearMulticolorGradientBrush
class with the specified points.
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.public LinearMulticolorGradientBrush(Point point1, Point point2)
Initializes a new instance of the LinearMulticolorGradientBrush
class with the specified points.
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.public LinearMulticolorGradientBrush(RectangleF rect, float angle)
Creates 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, boolean isAngleScalable)
Creates 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 trasnformations with this LinearMulticolorGradientBrush
.public LinearMulticolorGradientBrush(Rectangle rect, float angle)
Creates 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)
Creates 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 trasnformations with this LinearMulticolorGradientBrush
.Method Detail |
---|
public ColorBlend getInterpolationColors()
Gets a ColorBlend
that defines a multicolor linear gradient.
ColorBlend
that defines a multicolor linear gradient.
public void setInterpolationColors(ColorBlend value)
Sets a ColorBlend
that defines a multicolor linear gradient.
ColorBlend
that defines a multicolor linear gradient.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |