mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-08-01 18:26:15 +08:00
Add PdfRendererImageFormat
This commit is contained in:
parent
68e487d5ff
commit
3c510c62f2
@ -13,7 +13,8 @@ namespace UglyToad.PdfPig.Rendering
|
||||
/// </summary>
|
||||
/// <param name="page">The pdf page.</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>
|
||||
/// <returns>The image as a memory stream.</returns>
|
||||
MemoryStream Render(Page page, double scale);
|
||||
MemoryStream Render(Page page, double scale, PdfRendererImageFormat imageFormat);
|
||||
}
|
||||
}
|
||||
|
33
src/UglyToad.PdfPig/Rendering/PdfRendererImageFormat.cs
Normal file
33
src/UglyToad.PdfPig/Rendering/PdfRendererImageFormat.cs
Normal file
@ -0,0 +1,33 @@
|
||||
namespace UglyToad.PdfPig.Rendering
|
||||
{
|
||||
/// <summary>
|
||||
/// The output image format of the <see cref="IPageImageRenderer"/>.
|
||||
/// </summary>
|
||||
public enum PdfRendererImageFormat : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Bitmap image format.
|
||||
/// </summary>
|
||||
Bmp,
|
||||
|
||||
/// <summary>
|
||||
/// Jpeg/Jpg image format.
|
||||
/// </summary>
|
||||
Jpeg,
|
||||
|
||||
/// <summary>
|
||||
/// Png image format.
|
||||
/// </summary>
|
||||
Png,
|
||||
|
||||
/// <summary>
|
||||
/// Tiff image format.
|
||||
/// </summary>
|
||||
Tiff,
|
||||
|
||||
/// <summary>
|
||||
/// Gif image format.
|
||||
/// </summary>
|
||||
Gif
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user