Wiki source code of Commands.gzoom.en.txt

Last modified by John Stroy on 2013/02/23 07:21

Show last authors
1 = gzoom =
2
3 ##{{{
4 gzoom p1,p2,p3,p4,p5,p6,p7 [Copy and scale image]
5
6 p1,p2 : Destination size (X, Y) in pixels
7 p3=0~31(0): Source Window ID
8 p4,p5 : Coordinates (X, Y) of the top left corner of the source image to copy
9 p6,p7 : Source size (X, Y) in pixels
10 }}}##
11
12 == Notes ==
13
14 gzoom copies the portion of the image from the window specified by p3, bounded by the rectangle specified by (p4, p5) to (p4+p6, p5+p7), and scales it to draw on the current drawing position. gzoom scales the pixels according to the parameters given by p1 and p2. The window ID specified by p3 must either be the current active window ID or a window ID initialized by the [[screen>>Commands\.screen\.en\.txt]] command or the [[buffer>>Commands\.buffer\.en\.txt]] command.
15
16 It should be noted that when using gzoom command to copy images between palette (or indexed) mode windows, mismatching palettes or missing colors between the source and destination will result in unexpected results.
17
18 == Remarks ==
19
20 Available since ver2.55 of HSP
21
22 == See Also ==
23
24 [[gcopy>>Commands\.gcopy\.en\.txt]]