FYI some of the draw examples dont work anymore
this seems to work now:
// Project: getimage
// Created: 2016-10-22
// show all errors
SetErrorMode(2)
SetWindowSize( GetMaxDeviceWidth(), GetMaxDeviceHeight(), 0 )
// set display properties
SetDisplayAspect(1.6)
//SetVirtualResolution( GetMaxDeviceWidth(), GetMaxDeviceHeight() )
SetOrientationAllowed( 0, 0, 1, 1 )
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetClearColor(0,0,100)
//must call swap first
swap()
//DrawBox(0,GetMaxDeviceHeight()/5*4,GetMaxDeviceWidth(),GetMaxDeviceHeight(),255, 0, 0,0, 1 )
DrawBox(0,80,100,100, MakeColor(0,255,0), MakeColor(0,255,0), MakeColor(0,1,0), MakeColor(0,1,0), 1 )
DrawBox(0,85,100,100, MakeColor(0,0,255), MakeColor(0,0,255), MakeColor(0,0,10), MakeColor(0,0,10), 1 )
DrawBox(0,90,100,100, MakeColor(10,0,0), MakeColor(10,0,0), MakeColor(200,50,0), MakeColor(200,50,0), 1 )
DrawBox(0,95,100,100, MakeColor(180,0,0), MakeColor(180,0,0), MakeColor(250,0,0), MakeColor(250,0,0), 1 )
render()
GetImage(3,0,80,100,5)
GetImage(4,0,85,100,5)
GetImage(5,0,90,100,5)
GetImage(6,0,95,100,5)
//Create Sprite from the new image
CreateSprite(3,3)
SetSpriteSize(3,100,5)
SetSpritePosition(3,0,80)
CreateSprite(4,4)
SetSpriteSize(4,100,5)
SetSpritePosition(4,0,85)
CreateSprite(5,5)
SetSpriteSize(5,100,5)
SetSpritePosition(5,0,90)
CreateSprite(6,6)
SetSpriteSize(6,100,5)
SetSpritePosition(6,0,95)
do
Print( ScreenFPS() )
// SetSpritePosition(15,GetMaxDeviceHeight()/5*4,GetMaxDeviceWidth())
Sync()
loop