Wiki Code Error on _PRINTIMAGE
#3
(11-29-2022, 02:40 PM)RhoSigma Wrote: 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 Big Grin

There's always a catch when learning (didn't realize that option!) At least I got to understand it a bit better. Glad to give back  Big Grin
Reply


Messages In This Thread
Wiki Code Error on _PRINTIMAGE - by NasaCow - 11-29-2022, 01:44 PM
RE: Wiki Code Error on _PRINTIMAGE - by RhoSigma - 11-29-2022, 02:40 PM
RE: Wiki Code Error on _PRINTIMAGE - by NasaCow - 11-29-2022, 03:09 PM
RE: Wiki Code Error on _PRINTIMAGE - by bplus - 11-29-2022, 03:46 PM
RE: Wiki Code Error on _PRINTIMAGE - by SMcNeill - 11-29-2022, 03:59 PM
RE: Wiki Code Error on _PRINTIMAGE - by bplus - 11-29-2022, 04:02 PM



Users browsing this thread: 2 Guest(s)