IPageImageRenderer returns byte[] instead of MemoryStream.

This commit is contained in:
BobLd
2020-11-27 11:18:29 +00:00
parent 52eb935182
commit 2b60474e11

View File

@@ -1,5 +1,4 @@
using System.IO; using UglyToad.PdfPig.Content;
using UglyToad.PdfPig.Content;
namespace UglyToad.PdfPig.Rendering namespace UglyToad.PdfPig.Rendering
{ {
@@ -15,6 +14,6 @@ namespace UglyToad.PdfPig.Rendering
/// <param name="scale">The scale to apply to the page (i.e. zoom level).</param> /// <param name="scale">The scale to apply to the page (i.e. zoom level).</param>
/// <param name="imageFormat">The output image format, if supported.</param> /// <param name="imageFormat">The output image format, if supported.</param>
/// <returns>The image as a memory stream.</returns> /// <returns>The image as a memory stream.</returns>
MemoryStream Render(Page page, double scale, PdfRendererImageFormat imageFormat); byte[] Render(Page page, double scale, PdfRendererImageFormat imageFormat);
} }
} }