HP NW280-200X User Manual page 481

Prime graphing calculator
Table of Contents

Advertisement

N O T E
DIMGROB_P
DIM_GROB
GETPIX_P
GETPIX
GROBH_P
GROBH
Programming
Using the same variable for trgtGRB and srcGRB can be
unpredictable when the source and destination overlap.
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 graphics 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.
You can enter hexadecimal numbers using the 0xdigits
syntax.
The first pixel of the line is defined by the least significant
bit of the number; the 2nd pixel by the second least
significant bit, etc.
Syntax: GETPIX([G], xposition, yposition)
GETPIX_P([G], xposition, yposition)
Returns the color of the pixel G with coordinates x,y.
G can be any of the graphics variables and is optional.
The default is G0, the current graphic.
Syntax: GROBH(G)
GROBH_P(G)
Returns the height of G.
G can be any of the graphics variables and is optional.
The default is G0.
475

Advertisement

Table of Contents
loading

Table of Contents