THotPDF.GetLoadedCachedRenderedBitmap Method
Returns a bitmap for a loaded page from the thread-safe render cache, rendering and caching it when necessary
Declaration
function GetLoadedCachedRenderedBitmap(PageIndex, DPI: Integer): TBitmap;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based loaded page index |
DPI | Rendering resolution in dots per inch |
Return value
Returns the cached or newly rendered bitmap, or nil for an invalid page index
Usage notes
- The render cache is protected by the document render lock
- The caller owns the returned bitmap instance according to the loaded-page rendering contract