HP Prime Graphing Wireless Calculator User Manual

Page 283

Advertising
background image

Programming in HP PPL

279

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 graphics variables and is
optional. The default is G0.
srcGRB can be any of the graphics 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 any color specified as #RRGGBB. If it is not
specified, all pixels from srcGRB will be copied.

N o t e

Using the same variable for trgtGRB and srcGRB can be

unpredictable when the source and destination overlap.

DIMGROB_P

DIMGROB

Syntax: DIMGROB_P(G, w, h, [color]) or

DIMGROB_P(G, w, h, list)

DIMGROB(G, w, h, [color]) or
DIMGROB(G, w, h, list)

Sets the dimensions of GROB G to w × h. Initializes the
graphic G with color or with the graphic data provided in
list. If the graphic is initialized using graphic data, then list
is a list of integers. Each integer, as seen in base 16,
describes one color every 16 bits.
Colors are in A1R5G5B5 format (that is,1 bit for the alpha
channel, and 5 bits for R, G, and B).

Advertising