HPDFDecodeRichRasterWithWorkspace
function HPDFDecodeRichRasterWithWorkspace(const Data: SysUtils.TBytes;
const ContentType: UnicodeString; const Limits: THPDFRichRasterLimits;
Workspace: THPDFWorkspaceAdmission): THPDFRichRaster;
Declared in HPDFHeadlessRichRaster
Decodes an admitted PNG or JPEG into the existing rich-raster representation while reserving decoder buffers and polling work through the borrowed owner
Borrowed admission
Workspace is a borrowed THPDFWorkspaceAdmission; keep it alive for the entire call and do not reset its cumulative ledger during a failed attempt or retry
Pass nil to retain the original call behavior without a borrowed workspace; the original function signature remains available
Admission occurs before the implemented allocations or generated identities; bounded copy and operation checkpoints can also call Reserve(0)
An exception raised by the owner remains the operation failure; cleanup must remain possible after cancellation and must not replace that exception
The returned pixels and alpha arrays are published only after successful decoding and the final cancellation check; a failed decode does not publish a partially filled raster
The decoder limits and supported image profiles remain unchanged; this API does not make arbitrary image formats supported
See workspace admission and native runtimes for ledger categories and lifetime boundaries