Classic header and footer picture sources
Internal version 2.384.854 retains worksheet header and footer picture packets in a shared source whilst reading a Classic workbook, avoiding a complete resident drawing body and another full copy for each copied worksheet
Loading, copying and saving
When a normal file is loaded, the retained picture source is owned independently of the input file, and a save streams that source through bounded buffers
TXLSWorksheets.AddCopy shares ownership of the immutable picture source inside a workbook, so a copied worksheet that survives can save its pictures even after the original worksheet has been deleted
Cross-workbook copying through the direct Classic API still refuses header and footer pictures that depend on their original workbook's picture group; the refusal occurs before a destination worksheet is created or its resources are prepared
The separate typed XLSX header and footer image API retains its own copy and media-ownership behaviour
Continuation and source boundaries
Matching native HFPicture continuation packets can share one retained file source, whilst ordinary saving preserves the actual packet identifiers, boundaries and complete bytes
Legacy generic Continue packets retain their original bytes; repeated headers are removed by explicit logical capture only where the full header identity and the complete OfficeArt extent prove that framing
Normal loading and saving use checked wide lengths, whilst explicitly requested semantic capture retains its existing byte limit and rejects an oversized contiguous result before allocation
Picture groups that are global to the workbook keep their existing separate, bounded representation
Focused qualification
A native-authored small input retains its complete global and worksheet picture packets after same-book copying, original-sheet deletion, saving with the input unavailable, reopening and repeated saving; the same source also survives public RC4 reopening and plain reserialisation
One derived 12 MiB transport control retains all 1,533 worksheet picture packets, whilst its observed Pascal heap peaks are 206,096 bytes during input and 47,680 bytes during three copies
These figures describe the Pascal allocation regions that were measured; they leave out native allocations, operating-system memory, temporary disk and complete semantic capture requested explicitly. The derived large drawing serves as a transport control, not as qualification of large-image appearance
A separate legacy continuation control, together with bounded source-fault checks, keeps packet bytes, the caller cursor and ownership, and leaves the tested destination intact through a failed read that precedes a healthy retry
A physical public copy above MaxInt, along with further compiler or platform qualification, remains out of scope for this work