示例#1
0
 public PdfDrawStyle(float strokeThickness, PdfColor strokeColor, PdfLineType strokeType)
 {
     StrokeThickness = strokeThickness;
       StrokeColor = strokeColor;
       StrokeType = strokeType;
 }
示例#2
0
 /// <summary>
 /// Add circle primitive to the page
 /// </summary>
 public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
 {
     return(AddCircle(centerX, centerY, r, new PdfDrawStyle(borderThickness, borderColor, borderType)
     {
         FillColor = fill
     }));
 }
示例#3
0
 /// <summary>
 /// Add rectangle primitive to the page
 /// </summary>
 public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
 {
     return(AddRectangle(x1, y1, x2, y2, new PdfDrawStyle(borderThickness, borderColor, borderType)
     {
         FillColor = fill
     }));
 }
示例#4
0
 /// <summary>
 /// Add path to the page
 /// </summary>
 public PathElement AddPath(float x, float y, float thickness, PdfColor color, PdfLineType type)
 {
     return(AddPath(x, y, new PdfDrawStyle(thickness, color, type)));
 }
示例#5
0
 /// <summary>
 /// Add line primitive to the page
 /// </summary>
 public PathElement AddLine(float x1, float y1, float x2, float y2, float thickness, PdfColor color, PdfLineType type)
 {
     return(AddLine(x1, y1, x2, y2, new PdfDrawStyle(thickness, color, type)));
 }
示例#6
0
文件: PdfPage.cs 项目: itadapter/nfx
 /// <summary>
 /// Add rectangle primitive to the page
 /// </summary>
 public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
 {
     return AddRectangle(x1, y1, x2, y2, new PdfDrawStyle(borderThickness, borderColor, borderType) { FillColor = fill });
 }
示例#7
0
文件: PdfPage.cs 项目: itadapter/nfx
 /// <summary>
 /// Add path to the page
 /// </summary>
 public PathElement AddPath(float x, float y, float thickness, PdfColor color, PdfLineType type)
 {
     return AddPath(x, y, new PdfDrawStyle(thickness, color, type));
 }
示例#8
0
文件: PdfPage.cs 项目: itadapter/nfx
 /// <summary>
 /// Add line primitive to the page
 /// </summary>
 public PathElement AddLine(float x1, float y1, float x2, float y2, float thickness, PdfColor color, PdfLineType type)
 {
     return AddLine(x1, y1, x2, y2, new PdfDrawStyle(thickness, color, type));
 }
示例#9
0
文件: PdfPage.cs 项目: itadapter/nfx
 /// <summary>
 /// Add circle primitive to the page
 /// </summary>
 public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
 {
     return AddCircle(centerX, centerY, r, new PdfDrawStyle(borderThickness, borderColor, borderType) { FillColor = fill });
 }
示例#10
0
 public PdfDrawStyle(float strokeThickness, PdfColor strokeColor, PdfLineType strokeType)
 {
     StrokeThickness = strokeThickness;
     StrokeColor     = strokeColor;
     StrokeType      = strokeType;
 }