HTBasic Help
×
Menu
Index

GSTORE

Stores the CRT display buffer into an integer array.
 
 GSTORE [device-selector,] integer-array(*) [rectangle-params]
 
Usage:
GSTORE Diagram(*)
IF Keep THEN GSTORE Current(*)
GSTORE CRT,Image(*),200,200,3,0,100
 
Example:           GSTORE.BAS
 
Description:
This command saves an image from the screen into an integer array. The image in the array is most frequently used for re-display with the GLOAD command. The device-selector specifies the source device, which must be a bit-mapped device. The CRT is assumed if no device selector is specified.
 
Two forms of the GSTORE statement are supported. The first form is compatible with the GSTORE statement in HP BASIC and stores an image which fills the entire screen.
 
The second form stores an image which fills an arbitrary sized rectangular portion of the screen. For users porting programs from HP BASIC which use the Bstore()/Bload() CSUBs supplied with HP BASIC, the "Porting HP BASIC Programs to the PC" section of the Users Guide, presents Bstore()/Bload() SUBs which call GSTORE and GLOAD using the integrated syntax.
 
See Also: