Class CustomLineCap
Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)
封装自定义用户定义的线帽。
public class CustomLineCap
继承
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
CustomLineCap(GraphicsPath, GraphicsPath)
使用指定的轮廓和填充初始化 Aspose.Imaging.CustomLineCap 类的新实例。
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
参数
fillPath
GraphicsPath
一个 Aspose.Imaging.GraphicsPath 对象,定义自定义帽的填充。
strokePath
GraphicsPath
一个 Aspose.Imaging.GraphicsPath 对象,定义自定义帽的轮廓。
CustomLineCap(GraphicsPath, GraphicsPath, LineCap)
从指定的现有 Aspose.Imaging.LineCap 枚举以及指定的轮廓和填充初始化 Aspose.Imaging.CustomLineCap 类的新实例。
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap)
参数
fillPath
GraphicsPath
一个 Aspose.Imaging.GraphicsPath 对象,定义自定义帽的填充。
strokePath
GraphicsPath
一个 Aspose.Imaging.GraphicsPath 对象,定义自定义帽的轮廓。
baseCap
LineCap
用于创建自定义帽的线帽。
CustomLineCap(GraphicsPath, GraphicsPath, LineCap, float)
从指定的现有 Aspose.Imaging.LineCap 枚举以及指定的轮廓、填充和内嵌初始化 Aspose.Imaging.CustomLineCap 类的新实例。
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap, float baseInset)
参数
fillPath
GraphicsPath
一个 Aspose.Imaging.GraphicsPath 对象,定义自定义帽的填充。
strokePath
GraphicsPath
一个 Aspose.Imaging.GraphicsPath 对象,定义自定义帽的轮廓。
baseCap
LineCap
用于创建自定义帽的线帽。
baseInset
float
帽与线之间的距离。
属性
BaseCap
获取或设置此 Aspose.Imaging.CustomLineCap 所基于的 Aspose.Imaging.LineCap 枚举。
public LineCap BaseCap { get; set; }
属性值
BaseInset
获取或设置帽与线之间的距离。
public float BaseInset { get; set; }
属性值
FillPath
获取或设置定义自定义帽填充的对象。
public GraphicsPath FillPath { get; set; }
属性值
StrokeJoin
获取或设置确定组成此 Aspose.Imaging.CustomLineCap 对象的线条如何连接的 Aspose.Imaging.LineJoin 枚举。
public LineJoin StrokeJoin { get; set; }
属性值
StrokePath
获取或设置定义自定义帽轮廓的对象。
public GraphicsPath StrokePath { get; set; }
属性值
WidthScale
获取或设置相对于 System.Drawing.Pen 对象宽度缩放此 Aspose.Imaging.CustomLineCap 类对象的量。
public float WidthScale { get; set; }
属性值
方法
Equals(object)
检查对象是否相等。
public override bool Equals(object obj)
参数
obj
object
另一个对象。
返回
相等比较结果。
Equals(CustomLineCap)
检查对象是否相等。
protected bool Equals(CustomLineCap other)
参数
other
CustomLineCap
另一个对象。
返回
相等比较结果。
GetHashCode()
获取当前对象的哈希代码。
public override int GetHashCode()
返回
哈希代码。
GetStrokeCaps(out LineCap, out LineCap)
获取构成此自定义帽的起始和结束线的帽。
public void GetStrokeCaps(out LineCap startCap, out LineCap endCap)
参数
startCap
LineCap
在此帽内线的起始使用的 Aspose.Imaging.LineCap 枚举。
endCap
LineCap
在此帽内线的结束使用的 Aspose.Imaging.LineCap 枚举。
SetStrokeCaps(LineCap, LineCap)
设置构成此自定义帽的起始和结束线的帽。
public void SetStrokeCaps(LineCap startCap, LineCap endCap)
参数
startCap
LineCap
在此帽内线的起始使用的 Aspose.Imaging.LineCap 枚举。
endCap
LineCap
在此帽内线的结束使用的 Aspose.Imaging.LineCap 枚举。