11-29-2022, 02:40 PM
Thanks for reporting @NasaCow,
the example has been corrected now, however only a comma is needed in front of Page& to designate the destination coordinate parameter is ommitted, which is slightly different from your solution:
_PUTIMAGE , sourceHandle&, destHandle& 'size full source to fit full destination area
_PUTIMAGE (dx1, dy1), sourceHandle&, destHandle& 'full source to top-left corner destination position
hence in your solution the Page wouldn't be scaled to fit the Preview, but it would simply put the Page in the top/left corner of the Preview, clipping areas of the Page, if it's larger than the Preview, which is probably not what you want for a print preview
the example has been corrected now, however only a comma is needed in front of Page& to designate the destination coordinate parameter is ommitted, which is slightly different from your solution:
_PUTIMAGE , sourceHandle&, destHandle& 'size full source to fit full destination area
_PUTIMAGE (dx1, dy1), sourceHandle&, destHandle& 'full source to top-left corner destination position
hence in your solution the Page wouldn't be scaled to fit the Preview, but it would simply put the Page in the top/left corner of the Preview, clipping areas of the Page, if it's larger than the Preview, which is probably not what you want for a print preview
GuiTools, Blankers & other Projects:
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23