public abstract class PathGradientBrushBase extends TransformBrush
Represents a Brush
with base path gradient functionality.
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 OutOfMemoryException
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 OutOfMemoryException
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 or sets 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
dispose, getDisposed
public final PointF[] getPathPoints()
Gets the path points this brush was build upon.
Value: The path points.public final GraphicsPath getGraphicsPath()
Gets the graphics path this brush was build upon.
Value: The graphics path.public final PointF getCenterPoint()
Gets or sets the center point of the path gradient.
Value: APointF
that represents the center point of the path gradient.public final void setCenterPoint(PointF value)
Gets or sets the center point of the path gradient.
Value: APointF
that represents the center point of the path gradient.public final PointF getFocusScales()
Gets or sets the focus point for the gradient falloff.
Value: APointF
that represents the focus point for the gradient falloff.public final void setFocusScales(PointF value)
Gets or sets the focus point for the gradient falloff.
Value: APointF
that represents the focus point for the gradient falloff.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.