public abstract class PathGradientBrushBase extends TransformBrush
Represents a Brush
with base path gradient functionality.
Note that when creating the PathGradientBrushBase
class it should be initialized with 2 points at least. The internal path created
will always be a closed figure, the last point connects the first point. That shape is filled with this PathGradientBrushBase
.
The GDI+ implementation throws an OutOfMemoryError
when passing in empty arrays or points set having the same coordinates.
The PathGradientBrushBase
throws an exception when points array contain less than 2 points, the ArgumentException
is
thrown rather than OutOfMemoryError
when points array is unacceptable.
The center point is calculated as a center of mass for the passed in points by default. A user can change this point later.
The focus scales is an empty point (0.0, 0.0) by default.
Modifier and Type | Method and Description |
---|---|
PointF |
getCenterPoint()
Gets or sets the center point of the path gradient.
|
PointF |
getFocusScales()
Gets the focus point for the gradient falloff.
|
GraphicsPath |
getGraphicsPath()
Gets the graphics path this brush was build upon.
|
PointF[] |
getPathPoints()
Gets the path points this brush was build upon.
|
void |
setCenterPoint(PointF value)
Gets or sets the center point of the path gradient.
|
void |
setFocusScales(PointF value)
Gets or sets the focus point for the gradient falloff.
|
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransform
deepClone, getOpacity, setOpacity
close, dispose, getDisposed
public PointF[] getPathPoints()
Gets the path points this brush was build upon.
public GraphicsPath getGraphicsPath()
Gets the graphics path this brush was build upon.
public PointF getCenterPoint()
Gets or sets the center point of the path gradient.
Aspose.Imaging.PointF
that represents the center point of the path gradient.public void setCenterPoint(PointF value)
Gets or sets the center point of the path gradient.
value
- A Aspose.Imaging.PointF
that represents the center point of the path gradient.public PointF getFocusScales()
Gets the focus point for the gradient falloff.
Aspose.Imaging.PointF
that represents the focus point for the gradient falloff.public void setFocusScales(PointF value)
Gets or sets the focus point for the gradient falloff.
value
- A Aspose.Imaging.PointF
that represents the focus point for the gradient falloff.