Difference between revisions of "GET (graphics statement)"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 1: Line 1:
'''GET''' is used in graphics to store a box area image of the screen into an integer array.
+
The '''GET''' statement is used in graphics to store a box area image of the screen into an [[INTEGER]] array.
  
  
Line 8: Line 8:
  
  
 +
* Do NOT use coordinates off the screen in Qbasic! See the [[SCREEN (statement)]] for graphic screen dimensions.
 
* '''QB64''' GET statements can use coordinates off of the screen.
 
* '''QB64''' GET statements can use coordinates off of the screen.
* Do NOT use coordinates off the screen in Qbasic! See the [[SCREEN (statement)]] for graphic screen dimensions.
 
 
* The GET box coordinates are set just like a [[LINE]] box statement is placed.
 
* The GET box coordinates are set just like a [[LINE]] box statement is placed.
 
* [[INTEGER]] Array sizes must be large enough to hold the data or an error will occur!
 
* [[INTEGER]] Array sizes must be large enough to hold the data or an error will occur!
Line 22: Line 22:
  
  
''See also:'' [[BSAVE]], [[BLOAD]], [[PUT (graphics statement)|PUT]], [[Scancodes]](demo)
+
''See also:'' [[BSAVE]], [[BLOAD]], [[PUT (graphics statement)|PUT]], [[Scancodes]](example)
  
  

Revision as of 06:40, 3 January 2010

The GET statement is used in graphics to store a box area image of the screen into an INTEGER array.


QB Syntax: GET (column1, row1)-(column2, row2), Array(index)
QB64 Syntax: GET (column1, row1)-(column2, row2), {imagehandle| Array(index)}


  • Do NOT use coordinates off the screen in Qbasic! See the SCREEN (statement) for graphic screen dimensions.
  • QB64 GET statements can use coordinates off of the screen.
  • The GET box coordinates are set just like a LINE box statement is placed.
  • INTEGER Array sizes must be large enough to hold the data or an error will occur!
  • To GET more than one image to the same array, designate a unique indexed array area.
  • RGB color settings can be embedded(indexed) at the beginning of the array for custom colors.
  • SCREEN 12 can only GET 1/3 of a fullscreen image (this might not apply for QB64). Rows would incriment 160 for each GET.
  • Once GET has placed the pixel image data in the array, BSAVE it in a loop for SCREEN 12.




See also: BSAVE, BLOAD, PUT, Scancodes(example)


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage