#module
#deffunc gzoom2 int, int, int, int, int, int, int, int
mref zx, 0 : mref zy, 1 : mref id, 2 : mref bx, 3 : mref by, 4 : mref sx, 5 : mref sy, 6 : mref direction, 7
cx = csrx : cy = csry
if direction = 0 : pos csrx, csry : gzoom zx, zy, id, bx, by, sx, sy
if direction = 1 : pos csrx + zx - 1, csry : gzoom -zx, zy, id, bx, by, sx, sy
if direction = 2 : pos csrx, csry + zy - 1 : gzoom zx, -zy, id, bx, by, sx, sy
if direction = 3 : pos csrx + zx - 1, csry + zy - 1 : gzoom -zx, -zy, id, bx, by, sx, sy
pos csrx, csry // カレントポジションを戻す
return
#global
buffer 2
picload "sample/ssaver/Aruface.bmp"
gsel 0
redraw 0
pos 150, 50 : mes "ノーマル"
pos 150, 80 : gzoom2 80, 80, 2, , , 80, 80
pos 350, 50 : mes "左右反転"
pos 350, 80 : gzoom2 80, 80, 2, , , 80, 80, 1
pos 150, 200 : mes "上下反転"
pos 150, 230 : gzoom2 80, 80, 2, , , 80, 80, 2
pos 350, 200 : mes "上下左右反転"
pos 350, 230 : gzoom2 80, 80, 2, , , 80, 80, 3
redraw 1
stop
|