Where am I going wrong here ?
SetWindowSize( 256, 342, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
SetVirtualResolution( 256, 342 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
DrawBox(10, 10, 246, 332, 100, 100, 100, 100, 1)
GetImage(1, 0, 0, 256, 342)
CreateSprite(1, 1)
SetSpriteSize(1, 256, 342)
SetSpritePosition(1, 0, 0)
SaveImage(1,"box.png")
do
Print( ScreenFPS() )
Sync()
loop
I can save this box.png here like so - but the resulting image is 574 x 768, not 256 x 342 in size ?
(It's just a red box with a bit of a gap around the edges, almost full window size)