Class RenderedPage
Raw rendered pixel buffer in 32-bit BGRA format, completely UI-neutral and memory-managed.
public class RenderedPage : IDisposable
- Inheritance
-
RenderedPage
- Implements
- Inherited Members
Constructors
RenderedPage(int, int, int, int, double, PageRotation, IMemoryOwner<byte>)
Wraps a rendered pixel buffer. The page takes ownership of pixelMemory.
public RenderedPage(int pageNumber, int widthPixels, int heightPixels, int stride, double dpi, PageRotation rotation, IMemoryOwner<byte> pixelMemory)
Parameters
pageNumberintThe page number, starting at 1.
widthPixelsintThe width in pixels.
heightPixelsintThe height in pixels.
strideintThe bytes per pixel row.
dpidoubleThe resolution of the render.
rotationPageRotationThe viewer rotation of the request.
pixelMemoryIMemoryOwner<byte>The BGRA pixel buffer.
Properties
ByteLength
The size of the pixel data in bytes (Stride x HeightPixels).
public long ByteLength { get; }
Property Value
Dpi
The resolution the page was rendered at. For a request sized in pixels it is the resolution of that size, not Dpi; when the horizontal and vertical resolutions differ, it is the larger.
public double Dpi { get; }
Property Value
HeightPixels
The height of the image in pixels.
public int HeightPixels { get; }
Property Value
PageNumber
The rendered page number, starting at 1.
public int PageNumber { get; }
Property Value
PixelMemory
The owner of the pixel buffer. Dispose() releases it.
public IMemoryOwner<byte> PixelMemory { get; }
Property Value
Pixels
The pixels: 32-bit BGRA, premultiplied alpha, rows from top to bottom, Stride bytes per row.
public ReadOnlyMemory<byte> Pixels { get; }
Property Value
Rotation
The viewer rotation of the request.
public PageRotation Rotation { get; }
Property Value
Stride
The number of bytes per pixel row (at least 4 x WidthPixels).
public int Stride { get; }
Property Value
WidthPixels
The width of the image in pixels.
public int WidthPixels { get; }
Property Value
Methods
Dispose()
Releases the pixel buffer.
public void Dispose()