|
|||||||||
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.PathGradientBrushBase
public abstract class PathGradientBrushBase
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.
Constructor Summary | |
---|---|
protected |
PathGradientBrushBase(GraphicsPath path)
Initializes a new instance of the PathGradientBrushBase class with the specified path. |
protected |
PathGradientBrushBase(Point[] points)
Initializes a new instance of the PathGradientBrushBase class with the specified points. |
protected |
PathGradientBrushBase(Point[] points,
int wrapMode)
Initializes a new instance of the PathGradientBrushBase class with the specified points and wrap mode. |
protected |
PathGradientBrushBase(PointF[] points)
Initializes a new instance of the PathGradientBrushBase class with the specified points. |
protected |
PathGradientBrushBase(PointF[] points,
int wrapMode)
Initializes a new instance of the PathGradientBrushBase class with the specified points and wrap mode. |
Method Summary | |
---|---|
PointF |
getCenterPoint()
Gets 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)
Sets the center point of the path gradient. |
void |
setFocusScales(PointF value)
Sets the focus point for the gradient falloff. |
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 |
---|
protected PathGradientBrushBase(GraphicsPath path)
Initializes a new instance of the PathGradientBrushBase
class with the specified path.
path
- The GraphicsPath
that defines the area filled by this PathGradientBrushBase
.protected PathGradientBrushBase(Point[] points)
Initializes a new instance of the PathGradientBrushBase
class with the specified points.
points
- An array of Point
structures that represents the points that make up the vertices of the path.protected PathGradientBrushBase(Point[] points, int wrapMode)
Initializes a new instance of the PathGradientBrushBase
class with the specified points and wrap mode.
points
- An array of Point
structures that represents the points that make up the vertices of the path.wrapMode
- A WrapMode
that specifies how fills drawn with this PathGradientBrushBase
are tiled.protected PathGradientBrushBase(PointF[] points)
Initializes a new instance of the PathGradientBrushBase
class with the specified points.
points
- An array of PointF
structures that represents the points that make up the vertices of the path.protected PathGradientBrushBase(PointF[] points, int wrapMode)
Initializes a new instance of the PathGradientBrushBase
class with the specified points and wrap mode.
points
- An array of PointF
structures that represents the points that make up the vertices of the path.wrapMode
- A WrapMode
that specifies how fills drawn with this PathGradientBrushBase
are tiled.Method Detail |
---|
public PointF getCenterPoint()
Gets the center point of the path gradient.
Value: APointF
that represents the center point of the path gradient.
public PointF getFocusScales()
Gets the focus point for the gradient falloff.
Value: APointF
that represents the focus point for the gradient falloff.
public GraphicsPath getGraphicsPath()
Gets the graphics path this brush was build upon.
Value: The graphics path.
public PointF[] getPathPoints()
Gets the path points this brush was build upon.
Value: The path points.
public void setCenterPoint(PointF value)
Sets the center point of the path gradient.
Value: APointF
that represents the center point of the path gradient.
public void setFocusScales(PointF value)
Sets the focus point for the gradient falloff.
Value: APointF
that represents the focus point for the gradient falloff.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |