Difference between revisions of "GET (graphics statement)"

From QB64 Wiki
Jump to navigation Jump to search
Line 22: Line 22:
''See also:'' [[BSAVE]], [[BLOAD]], [[PUT (graphics statement)|PUT]], [[Scancodes]](Example 3)
''See also:''  
[[BSAVE]], [[BLOAD]], [[PUT (graphics statement)|PUT]]
[[Scancodes]](Example 3), [[Creating Sprite Masks]]
[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]
[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]

Revision as of 01:06, 17 June 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:


Scancodes(Example 3), Creating Sprite Masks

Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page