使用时缺少 GetPentagram class
Missing GetPentagram class on use
我在他们的网站上按照 PDFSharp 的说明进行操作。现在有一个使用 GetPentagram 绘制多边形的示例。但是没有建议导入上述class。下面是示例代码
void DrawPolygon(XGraphics gfx, int number)
{
BeginBox(gfx, number, "DrawPolygon");
XPen pen = new XPen(XColors.DarkBlue, 2.5);
gfx.DrawPolygon(pen, XBrushes.LightCoral, GetPentagram(50, new XPoint(60, 70)), XFillMode.Winding);
gfx.DrawPolygon(pen, XBrushes.LightCoral, GetPentagram(50, new XPoint(180, 70)), XFillMode.Alternate);
EndBox(gfx);
}
现在找不到 GetPentagram class,所以我不知道 where/what 包含此 class 的要导入的包。有人有想法吗?
GetPentagram
是样本的一部分。如果您只复制一个方法而没有引用方法,则不起作用。
https://github.com/empira/PDFsharp-samples/blob/master/samples/core/Graphics/Base.cs
我在他们的网站上按照 PDFSharp 的说明进行操作。现在有一个使用 GetPentagram 绘制多边形的示例。但是没有建议导入上述class。下面是示例代码
void DrawPolygon(XGraphics gfx, int number)
{
BeginBox(gfx, number, "DrawPolygon");
XPen pen = new XPen(XColors.DarkBlue, 2.5);
gfx.DrawPolygon(pen, XBrushes.LightCoral, GetPentagram(50, new XPoint(60, 70)), XFillMode.Winding);
gfx.DrawPolygon(pen, XBrushes.LightCoral, GetPentagram(50, new XPoint(180, 70)), XFillMode.Alternate);
EndBox(gfx);
}
现在找不到 GetPentagram class,所以我不知道 where/what 包含此 class 的要导入的包。有人有想法吗?
GetPentagram
是样本的一部分。如果您只复制一个方法而没有引用方法,则不起作用。
https://github.com/empira/PDFsharp-samples/blob/master/samples/core/Graphics/Base.cs