示例#1
0
 void IDrawingCanvas.DrawImage(ImageEx image, float x, float y, float width, float height, float opacity)
 {
     _graphics.DrawImage((Image)image, PdfConverter.Convert(new RectangleF(x, y, width, height)));
 }
示例#2
0
 void IDrawingCanvas.DrawLine(PenEx pen, PointF from, PointF to)
 {
     _graphics.DrawLine((Pen)pen, PdfConverter.Convert(from), PdfConverter.Convert(to));
 }
示例#3
0
 void IDrawingCanvas.FillPolygon(BrushEx brush, PointF[] polygon)
 {
     _graphics.DrawPolygon((BrushBase)brush, polygon.Select(p => PdfConverter.Convert(p)).ToArray(), XFillMode.Winding);
 }
示例#4
0
 void IDrawingCanvas.DrawLines(PenEx pen, PointF[] polyLine)
 {
     _graphics.DrawLines((Pen)pen, polyLine.Select(p => PdfConverter.Convert(p)).ToArray());
 }
示例#5
0
 void IDrawingCanvas.DrawPolygon(PenEx pen, PointF[] points)
 {
     _graphics.DrawPolygon((Pen)pen, points.Select(p => PdfConverter.Convert(p)).ToArray());
 }
示例#6
0
 void IDrawingCanvas.FillEllipse(BrushEx brush, RectangleF rect)
 {
     _graphics.DrawEllipse((BrushBase)brush, PdfConverter.Convert(rect));
 }
示例#7
0
 void IDrawingCanvas.DrawEllipse(PenEx pen, RectangleF rect)
 {
     _graphics.DrawEllipse((Pen)pen, PdfConverter.Convert(rect));
 }
示例#8
0
 void IGenerator.UrlGoTo(string link, int sourcePage, RectangleF sourceArea)
 {
     _document.Pages[sourcePage - 1].AddWebLink(new PdfRectangle(PdfConverter.Convert(sourceArea)), link);
 }
示例#9
0
 public LinearGradientBrush(PointF point1, PointF point2, Color color1, Color color2)
 {
     _brushInfo = new XLinearGradientBrush(PdfConverter.Convert(point1), PdfConverter.Convert(point2), XColor.FromArgb(color1.ToArgb()), XColor.FromArgb(color2.ToArgb()));
 }