mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-01-09 14:04:35 +08:00
Add IPageImageRenderer
This commit is contained in:
19
src/UglyToad.PdfPig/Rendering/IPageImageRenderer.cs
Normal file
19
src/UglyToad.PdfPig/Rendering/IPageImageRenderer.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user