They both don't work at two of my work computers.
Both have win7-64 and integrated ati gfx board (I think x1200 and 4200hd)
got any code and/or graphics ?
print "HELLO",10,10
savebmp "test.bmp"
(I have try with showscreen before and after the save...)
It saves a blank png file, no data, just a alpha screen.
Quote from: ampos on 2011-Mar-23
print "HELLO",10,10
savebmp "test.bmp"
(I have try with showscreen before and after the save...)
It saves a blank png file, no data, just a alpha screen.
I tested your code and it worked o.k.
I tried different screen sizes, png, bmp. iphone and windows 7 64-bit
all worked.
It work on my home computer and on my portable computer. It does not work on 2 of my work computers. They have:
-fast cpu (x3)
-ton of ram (8 gb)
-more tons of hard disk
-integrated ATI gfx board.
and I don't know why.
What ATI model ?
X1200 & 2400hd (or is 4200?)
Try doing :
print "HELLO",10,10
SHOWSCREEN
print "HELLO",10,10
SAVEBMP "file.bmp"
It also fails.
It sounds like the graphics driver or screen resolution is causing this problem, though its surprising for the 4200
can you grabsprite and drawsprite?
If that works - are you sure you can write to the directory you want?
I have been making tests, using the following code:
SETCURRENTDIR("Media") // seperate media and binaries?
SETSCREEN 640,400,0
PRINT "HELLO",10,10
GRABSPRITE 1,0,0,100,100
DRAWSPRITE 1,10,16
SHOWSCREEN
PRINT "HELLO",10,10
SAVEBMP "file2.png"
SAVESPRITE "spr.png",1
If I change the grabsprite size, the savesprite saves strange things.
(in bmp it saves a blue screen)
definitely a gfx card driver problem.