Class EmfPlusCustomLineCapArrowData
Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Objects
Assembly: Aspose.Imaging.dll (25.7.0)
The EmfPlusCustomLineCapArrowData object specifies adjustable arrow data for a custom line cap.
public sealed class EmfPlusCustomLineCapArrowData : EmfPlusCustomBaseLineCap
{
private const int arrowSize = 15;
private readonly short[] lineEndPoints;
public EmfPlusCustomLineCapArrowData(short[] lineEndPoints)
{
this.lineEndPoints = lineEndPoints;
}
protected override void OnBuildRecord(EmfPlusMetafileRecordBuilder builder)
{
base.OnBuildRecord(builder);
builder.AddBytes((short)RecordType.CustomLineCap);
builder.AddShort(arrowSize); // Arrow size
builder.AddLong(this.lineEndPoints[0]); // X-coordinate of line end point 1 (start point)
builder.AddLong(this.lineEndPoints[1]); // Y-coordinate of line end point 1 (start point)
builder.AddLong(this.lineEndPoints[2]); // X-coordinate of line end point 2 (end point)
builder.AddLong(this.lineEndPoints[3]); // Y-coordinate of line end point 2 (end point)
}
}
Inheritance
object ← MetaObject ← EmfPlusObject ← EmfPlusStructureObjectType ← EmfPlusCustomBaseLineCap ← EmfPlusCustomLineCapArrowData
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
EmfPlusCustomLineCapArrowData()
public EmfPlusCustomLineCapArrowData()
{
}
Properties
FillHotSpot
Gets or sets EmfPlusPointF object that is not currently used. It MUST be set to {0.0, 0.0}.
public PointF FillHotSpot
{
get;
set;
}
Property Value
FillState
Gets or sets a 32-bit Boolean value that specifies whether the arrow cap is filled. If the arrow cap isnot filled, only the outline is drawn
public bool FillState
{
get;
set;
}
Property Value
Height
Gets or sets a 32-bit floating-point value that specifiesthe height of the arrow cap.
public float Height
{
get;
set;
}
Property Value
LineEndCap
Gets or sets a 32-bit unsigned integer that specifies the value in the LineCap enumeration that indicates the line cap tobe used at the end of the line to be drawn
public EmfPlusLineCapType LineEndCap
{
get;
set;
}
Property Value
LineHotSpot
Gets or sets an EmfPlusPointF object that is not currently used. It MUST be set to {0.0, 0.0}.
public PointF LineHotSpot
{
get;
set;
}
Property Value
LineJoin
Gets or sets a 32-bit unsigned integer that specifies the value in the LineJoinenumeration that specifies how to join two lines that are drawn bythe same pen and whose ends meet. At the intersection of the two line ends,a line join makes the connection look more continuous.
public EmfPlusLineJoinType LineJoin
{
get;
set;
}
Property Value
LineMiterLimit
Gets or sets a 32-bit floating-point value that specifies the limit of thethickness of the join on a mitered corner by settingthe maximum allowed ratio of miter length to line width
public float LineMiterLimit
{
get;
set;
}
Property Value
LineStartCap
Gets or sets a 32-bit unsigned integer that specifies the value in the LineCap enumeration that indicates the line cap tobe used at the start of the line to be drawn
public EmfPlusLineCapType LineStartCap
{
get;
set;
}
Property Value
MiddleInset
Gets or sets a 32-bit floating-point value that specifies the number of pixels between the outline of the arrowcap and the fill of the arrow cap.
public float MiddleInset
{
get;
set;
}
Property Value
Width
Gets or sets a 32-bit floating-point value that specifiesthe width of the arrow cap
public float Width
{
get;
set;
}
Property Value
WidthScale
Gets or sets a 32-bit floating-point value that specifies the amount bywhich to scale an EmfPlusCustomLineCap object with respect to the widthof the graphics pen that is used to draw the lines
public float WidthScale
{
get;
set;
}