Struct pdfium_render::bitmap::PdfBitmap
source · [−]pub struct PdfBitmap<'a> { /* private fields */ }Expand description
A rendered image of a single PdfPage at a specific width and height.
By default, PdfBitmap is lazy; it will not render its page into a bitmap until
it is required to do so in order to return a byte buffer or an Image::DynamicImage.
If preferred, rendering can be initiated manually by calling the PdfBitmap::render() function.
Once rendered, the page will not be re-rendered.
Implementations
Returns the pixel format of the image in this PdfBitmap.
Returns the rotation setting that will be applied to this page during rendering.
Returns a new DynamicImage created from the bitmap buffer backing this PdfBitmap, rendering the referenced page if necessary.
Returns an immutable reference to the bitmap buffer backing this PdfBitmap, rendering the referenced page if necessary.
Renders this page into a bitmap buffer. Once rendered, the page will not be re-rendered.
It is generally unnecessary to call this function directly, since PdfBitmap will automatically initiate rendering itself on the first call to either the PdfBitmap::as_bytes() function or the PdfBitmap::as_image() function.