HTBasic Help
×
Menu
Index
Screen Raster Images
 
The GSTORE statement allows you to save the current graphics screen raster image into an array and the GLOAD statement restores the graphics image to the graphics screen. The device-selector specifies the device, which must be a bit-mapped device. The CRT is assumed if no device selector is specified.
 
There are many uses for this capability. Images of various graphs and charts can be stored in different arrays, and then easily redisplayed. Graphs that may be very slow to generate, need only to be generated once and then displayed very fast. The graphics information in the arrays can also be written to a file for future use.
 
Two forms of the GLOAD and GSTORE statements are supported. The first form is compatible with the GLOAD/GSTORE statements in HP BASIC, and displays an image that fills the entire screen.
 
The second form operates on an arbitrary sized rectangular portion of the screen. For users porting programs from HP BASIC that use the Bstore()/Bload() CSUBs supplied with HP BASIC, Chapter 10 of the Installing and Using Guide, presents Bstore()/Bload() SUBs that call GSTORE and GLOAD using the integrated syntax.