Add IPageImageRenderer

This commit is contained in:
BobLd
2020-11-23 12:38:44 +00:00
parent 95fa002b4a
commit 68e487d5ff

View File

@@ -0,0 +1,19 @@
using System.IO;
using UglyToad.PdfPig.Content;
namespace UglyToad.PdfPig.Rendering
{
/// <summary>
/// Render page as an image.
/// </summary>
public interface IPageImageRenderer
{
/// <summary>
/// Render page as an image.
/// </summary>
/// <param name="page">The pdf page.</param>
/// <param name="scale">The scale to apply to the page (i.e. zoom level).</param>
/// <returns>The image as a memory stream.</returns>
MemoryStream Render(Page page, double scale);
}
}