GET (graphics statement)

From QB64 Wiki
Revision as of 00:41, 2 January 2010 by imported>Clippy
Jump to navigation Jump to search

GET 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)}

  • 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.
  • 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(demo)


Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage