Actually what TCanvas.SetOrigin should do. I thought that it really exists in Delphi, but now I see it does not exist at all
, anyway if I correctly understood you, setViewportOrgEx() is what you need.
My point was that "Copilot" presented an example of offsetting the origin of the canvas that was suppose to be a Lazaruas (LCL) example and this method for the canvas was used in the posted example, but It also state I could use the raw level method of doing it.
Copilot must of corrected itself because that example no longer appears showing the use of Canvas.SetOrigin.
I suppose it could of took a partial example from another language and assumed the LCL could do it and went for it.
You know what they say about assuming!

Jamie