262 Programming
Copies the region of srcGRB between point sx1, sy1 and
sx2, sy2 into the region of trgtGRB between points dx1,
dy1 and dx2, dy2. Do not copy pixels from srcGRB that
are color c.
trgtGRB can be any of the graphic variables. trgtGRB can
be any of the graphic variables and is optional. The
default is G0.
srcGRB can be any of the graphic variables.
dx2, dy2 are optional and if not specified will be
calculated so that the destination area is the same size as
the source area.
sx2, sy2 are optional and if not specified will be the
bottom right of the srcGRB.
sx1, sy1 are optional and if not specified will be the top
left of srcGRB.
dx1, dy1 are optional and if not specified will be the top
left of trgtGRB.
c can be 0 to 3 (0=black, 1= dark gray, 2= light gray,
3= white). c is optional. If not specified all pixels from G2
will be copied.
NOTE
Using the same variable for trgtGRB and srcGRB can be
unpredictable when the source and destination overlap.
DIMGROB and
DIMBROB_P
Syntax: DIMGROB(G, w, h [ ,c]) or DIMGROB(G [ ,line_1,
line_2,…,line_h])
DIMGROB(G, w, h [ ,c]) or DIMGROB(G [ ,line_1,
line_2,…,line_h])
Sets the dimensions of GROB G to w*h. initializes the
graphic G with color c or with the graphic data provided
in the list. G can be any graphic variable except G0. c
can be 0 to 3 (0=black, 1= dark gray, 2= light gray, 3=
white). c is optional. The default is white.
If the graphic is initialized using graphic data, the list
must have as many numbers as the height of the GROB.
Each number, as seen in base 16 describes a line. Two
bits are used for each pixel (00=black, 01=dark gray,
10=light gray, 11=white). Hence, each hex digit
describes two pixels.