本文整理汇总了C#中Pen.EndPointVertexBound方法的典型用法代码示例。如果您正苦于以下问题:C# Pen.EndPointVertexBound方法的具体用法?C# Pen.EndPointVertexBound怎么用?C# Pen.EndPointVertexBound使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pen
的用法示例。
在下文中一共展示了Pen.EndPointVertexBound方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ResetWorkspace
public void ResetWorkspace (Pen pen)
{
XYBuffer.EnsureCapacity(Math.Max(pen.StartPointVertexBound(), pen.EndPointVertexBound()));
XYInsetBuffer.EnsureCapacity(pen.LineJoinVertexBound());
XYOutsetBuffer.EnsureCapacity(XYInsetBuffer.Capacity);
UVBuffer.EnsureCapacity(XYBuffer.Capacity);
UVInsetBuffer.EnsureCapacity(XYInsetBuffer.Capacity);
UVOutsetBuffer.EnsureCapacity(XYOutsetBuffer.Capacity);
IndexBuffer.EnsureCapacity(Math.Max(pen.StartCapInfo.IndexCount, pen.EndCapInfo.IndexCount));
OutlineIndexBuffer.EnsureCapacity(XYBuffer.Capacity);
PathLength = 0;
}
示例2: PenWorkspace
public PenWorkspace (Pen pen)
{
XYBuffer = new Buffer<CCVector2>(Math.Max(pen.StartPointVertexBound(), pen.EndPointVertexBound()));
XYInsetBuffer = new Buffer<CCVector2>(pen.LineJoinVertexBound());
XYOutsetBuffer = new Buffer<CCVector2>(XYInsetBuffer.Capacity);
UVBuffer = new Buffer<CCVector2>(XYBuffer.Capacity);
UVInsetBuffer = new Buffer<CCVector2>(XYInsetBuffer.Capacity);
UVOutsetBuffer = new Buffer<CCVector2>(XYOutsetBuffer.Capacity);
IndexBuffer = new Buffer<short>(Math.Max(pen.StartCapInfo.IndexCount, pen.EndCapInfo.IndexCount));
OutlineIndexBuffer = new Buffer<short>(XYBuffer.Capacity);
BoundingQuad = new CCVector2[4];
}