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))); }
void IDrawingCanvas.DrawLine(PenEx pen, PointF from, PointF to) { _graphics.DrawLine((Pen)pen, PdfConverter.Convert(from), PdfConverter.Convert(to)); }
void IDrawingCanvas.FillPolygon(BrushEx brush, PointF[] polygon) { _graphics.DrawPolygon((BrushBase)brush, polygon.Select(p => PdfConverter.Convert(p)).ToArray(), XFillMode.Winding); }
void IDrawingCanvas.DrawLines(PenEx pen, PointF[] polyLine) { _graphics.DrawLines((Pen)pen, polyLine.Select(p => PdfConverter.Convert(p)).ToArray()); }
void IDrawingCanvas.DrawPolygon(PenEx pen, PointF[] points) { _graphics.DrawPolygon((Pen)pen, points.Select(p => PdfConverter.Convert(p)).ToArray()); }
void IDrawingCanvas.FillEllipse(BrushEx brush, RectangleF rect) { _graphics.DrawEllipse((BrushBase)brush, PdfConverter.Convert(rect)); }
void IDrawingCanvas.DrawEllipse(PenEx pen, RectangleF rect) { _graphics.DrawEllipse((Pen)pen, PdfConverter.Convert(rect)); }
void IGenerator.UrlGoTo(string link, int sourcePage, RectangleF sourceArea) { _document.Pages[sourcePage - 1].AddWebLink(new PdfRectangle(PdfConverter.Convert(sourceArea)), link); }
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())); }