private static void SetUp(PdfRenderer renderer) { renderer.AddRenderer(new PanelRenderer()); renderer.AddRenderer(new TextBlockRenderer()); renderer.AddRenderer(new BorderRenderer()); renderer.AddRenderer(new RectangleRenderer()); renderer.AddRenderer(new EllipseRenderer()); renderer.AddRenderer(new LineRenderer()); renderer.AddRenderer(new ImageRenderer()); #if WPF renderer.AddRenderer(new ShapeRenderer()); renderer.AddRenderer(new FrameworkElementRenderer( typeof(ContentPresenter), typeof(Control), typeof(ItemsPresenter), typeof(System.Windows.Documents.AdornerLayer))); #elif SILVERLIGHT renderer.AddRenderer(new PathRenderer()); renderer.AddRenderer(new FrameworkElementRenderer( typeof(ContentPresenter), typeof(Control), typeof(ItemsPresenter))); #endif }
private static void SetUp(PdfRenderer renderer) { renderer.AddRenderer(new PanelRenderer()); renderer.AddRenderer(new TextBoxRenderer()); renderer.AddRenderer(new TextBlockRenderer()); renderer.AddRenderer(new BorderRenderer()); renderer.AddRenderer(new RectangleRenderer()); renderer.AddRenderer(new EllipseRenderer()); renderer.AddRenderer(new LineRenderer()); renderer.AddRenderer(new ImageRenderer()); #if WPF renderer.AddRenderer(new ShapeRenderer()); renderer.AddRenderer(new FrameworkElementRenderer( typeof(ContentPresenter), typeof(Control), typeof(ItemsPresenter), typeof(System.Windows.Documents.AdornerLayer))); #elif SILVERLIGHT renderer.AddRenderer(new PathRenderer()); renderer.AddRenderer(new FrameworkElementRenderer( typeof(ContentPresenter), typeof(Control), typeof(ItemsPresenter))); #endif }
static ExportHelper() { pdfRenderer = new PdfRenderer(); SetUp(pdfRenderer); }
internal PdfRenderContext(FixedContentEditor drawingSurface, PdfRenderer facade) { this.drawingSurface = drawingSurface; this.facade = facade; this.opacity = 1; }