public class CustomLineCap extends Object implements com.aspose.ms.System.IDisposable
Encapsulates a custom user-defined line cap.
| Constructor and Description |
|---|
CustomLineCap(GraphicsPath fillPath,
GraphicsPath strokePath)
Initializes a new instance of the
CustomLineCap class with the specified outline and fill. |
CustomLineCap(GraphicsPath fillPath,
GraphicsPath strokePath,
int baseCap)
Initializes a new instance of the
CustomLineCap class from the specified
existing LineCap enumeration with the specified outline and fill. |
CustomLineCap(GraphicsPath fillPath,
GraphicsPath strokePath,
int baseCap,
float baseInset)
Initializes a new instance of the
CustomLineCap class from the specified
existing LineCap enumeration with the specified outline, fill, and inset. |
| Modifier and Type | Method and Description |
|---|---|
Object |
deepClone()
Creates an exact copy of this
CustomLineCap. |
void |
dispose()
Releases all resources used by this
CustomLineCap object. |
int |
getBaseCap()
Gets or sets the
LineCap enumeration on which this CustomLineCap is based. |
float |
getBaseInset()
Gets or sets the distance between the cap and the line.
|
GraphicsPath |
getFillPath() |
void |
getStrokeCaps(int[] startCap,
int[] endCap)
Gets the caps used to start and end lines that make up this custom cap.
|
int |
getStrokeJoin()
Gets or sets the
LineJoin enumeration that determines how lines that compose
this CustomLineCap object are joined. |
GraphicsPath |
getStrokePath()
Gets the object that defines the outline of the custom cap.
|
float |
getWidthScale()
Gets or sets the amount by which to scale this
CustomLineCap Class
object with respect to the width of the Pen object. |
void |
setBaseCap(int value)
Gets or sets the
LineCap enumeration on which this CustomLineCap is based. |
void |
setBaseInset(float value)
Gets or sets the distance between the cap and the line.
|
void |
setStrokeCaps(int startCap,
int endCap)
Sets the caps used to start and end lines that make up this custom cap.
|
void |
setStrokeJoin(int value)
Gets or sets the
LineJoin enumeration that determines how lines that compose
this CustomLineCap object are joined. |
void |
setWidthScale(float value)
Gets or sets the amount by which to scale this
CustomLineCap Class
object with respect to the width of the Pen object. |
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
Initializes a new instance of the CustomLineCap class with the specified outline and fill.
fillPath - A GraphicsPath object that defines the fill for the custom cap.strokePath - A GraphicsPath object that defines the outline of the custom cap.public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap)
Initializes a new instance of the CustomLineCap class from the specified
existing LineCap enumeration with the specified outline and fill.
fillPath - A GraphicsPath object that defines the fill for the custom cap.strokePath - A GraphicsPath object that defines the outline of the custom cap.baseCap - The line cap from which to create the custom cap.public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset)
Initializes a new instance of the CustomLineCap class from the specified
existing LineCap enumeration with the specified outline, fill, and inset.
fillPath - A GraphicsPath object that defines the fill for the custom cap.strokePath - A GraphicsPath object that defines the outline of the custom cap.baseCap - The line cap from which to create the custom cap.baseInset - The distance between the cap and the line.public final int getStrokeJoin()
Gets or sets the LineJoin enumeration that determines how lines that compose
this CustomLineCap object are joined.
public final void setStrokeJoin(int value)
Gets or sets the LineJoin enumeration that determines how lines that compose
this CustomLineCap object are joined.
public final int getBaseCap()
Gets or sets the LineCap enumeration on which this CustomLineCap is based.
public final void setBaseCap(int value)
Gets or sets the LineCap enumeration on which this CustomLineCap is based.
public final float getBaseInset()
Gets or sets the distance between the cap and the line.
public final void setBaseInset(float value)
Gets or sets the distance between the cap and the line.
public final float getWidthScale()
Gets or sets the amount by which to scale this CustomLineCap Class
object with respect to the width of the Pen object.
public final void setWidthScale(float value)
Gets or sets the amount by which to scale this CustomLineCap Class
object with respect to the width of the Pen object.
public final void dispose()
Releases all resources used by this CustomLineCap object.
dispose in interface com.aspose.ms.System.IDisposablepublic final Object deepClone()
Creates an exact copy of this CustomLineCap.
CustomLineCap this method creates, cast as an object.public final void setStrokeCaps(int startCap,
int endCap)
Sets the caps used to start and end lines that make up this custom cap.
public final void getStrokeCaps(int[] startCap,
int[] endCap)
Gets the caps used to start and end lines that make up this custom cap.
public GraphicsPath getFillPath()
public GraphicsPath getStrokePath()
Gets the object that defines the outline of the custom cap.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.