r />
Locate 0,0
<br />
Print "Press a key to write pixels"
<br />
Print "Once this has finished, you can then press a key to end the program"
<br />

<br />
WaitKey()
<br />

<br />
; Lock buffer before using WritePixelFast
<br />
LockBuffer
<br />

<br />
; Use WritePixel to redraw the screen using the color information we got earlier
<br />
For y=0 To GraphicsHeight()
<br />
For x=0 To GraphicsWidth()
<br />
WritePixelFast x,y,pix(x,GraphicsHeight()-y) ; get y array value in backwards  order, to flip scre