GET (graphics statement)

From QB64 Wiki
Revision as of 05:27, 27 December 2010 by imported>Clippy
Jump to navigation Jump to search

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. You can use a box to find the correct GET area.
  • 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.
  • Once the image is stored in an array PUT can be used to place the image on the screen.



See also:

BSAVE, BLOAD, PUT

Scancodes(Example 3), Creating Sprite Masks

Bitmaps



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