Exemplo n.º 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// Render
 ///
 /// <summary>
 /// Get an Image object in which the Page content is rendered.
 /// </summary>
 ///
 /// <param name="page">Page object.</param>
 /// <param name="size">Rendering size.</param>
 ///
 /// <returns>Image object</returns>
 ///
 /* ----------------------------------------------------------------- */
 public Image Render(Page page, SizeF size) =>
 Core.Invoke(e => PdfiumRenderer.Render(e, page, size, RenderOption));
Exemplo n.º 2
0
 /* ----------------------------------------------------------------- */
 ///
 /// Render
 ///
 /// <summary>
 /// Render the Page content to the Graphics object with the
 /// specified parameters
 /// </summary>
 ///
 /// <param name="dest">Graphics object.</param>
 /// <param name="page">Page object.</param>
 /// <param name="point">Start point to render.</param>
 /// <param name="size">Rendering size.</param>
 ///
 /* ----------------------------------------------------------------- */
 public void Render(Graphics dest, Page page, PointF point, SizeF size) =>
 Core.Invoke(e => PdfiumRenderer.Render(e, dest, page, point, size, RenderOption));