lp0 = manager:machine().lp[1]
lp0:clearpage(0,0xffffff)
lp0:clearpage(-1,0x808080)
function drawx(x1,y1,size)
local y2 = y1+size-1 local x2 = x1+size-1
for i=0,size-1 do
lp0:drawpixel(x1+i,y1) lp0:drawpixel(x1+i,y2) lp0:drawpixel(x1,y1+i) lp0:drawpixel(x2,y1+i) lp0:drawpixel(x1+i,y1+i) lp0:drawpixel(x2-i,y1+i)
end
end
drawx(0,0,20)
lp0:savepagescale(0,2.0,4.0) -- save page 0 at magnification 2.0 horiz and 4.0 vertically
for i = 0,20 do lp0:mycopyroz(lp0.m_lp_bitmap,lp0.m_lp_bitmap,0,792,70+40*i,792,20,20,2,2) end
xpos = 0
for i = 1,10 do
mag = i size = 20 * mag lp0:mycopyroz(lp0.m_lp_bitmap,lp0.m_lp_bitmap,0,792+0,xpos,792-100,size/mag,size/mag,mag,mag)
xpos = xpos + size
end
lp0:setheadpos(0,20)
lp0:saveall()