GLBasic forum

Main forum => Bug Reports => Topic started by: ampos on 2011-Mar-23

Title: Savebmp/savesprite
Post by: ampos on 2011-Mar-23
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)
Title: Re: Savebmp/savesprite
Post by: MrTAToad on 2011-Mar-23
got any code and/or graphics ?
Title: Re: Savebmp/savesprite
Post by: ampos on 2011-Mar-23
Code (glbasic) Select
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.
Title: Re: Savebmp/savesprite
Post by: Millerszone on 2011-Mar-23
Quote from: ampos on 2011-Mar-23
Code (glbasic) Select
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.
Title: Re: Savebmp/savesprite
Post by: ampos on 2011-Mar-23
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.
Title: Re: Savebmp/savesprite
Post by: MrTAToad on 2011-Mar-23
What ATI model ?
Title: Re: Savebmp/savesprite
Post by: ampos on 2011-Mar-23
X1200 & 2400hd (or is 4200?)
Title: Re: Savebmp/savesprite
Post by: MrTAToad on 2011-Mar-23
Try doing :

Code (glbasic) Select
print "HELLO",10,10
SHOWSCREEN
print "HELLO",10,10
SAVEBMP "file.bmp"
Title: Re: Savebmp/savesprite
Post by: ampos on 2011-Mar-24
It also fails.
Title: Re: Savebmp/savesprite
Post by: MrTAToad on 2011-Mar-24
It sounds like the graphics driver or screen resolution is causing this problem, though its surprising for the 4200
Title: Re: Savebmp/savesprite
Post by: Kitty Hello on 2011-Mar-24
can you grabsprite and drawsprite?
If that works - are you sure you can write to the directory you want?
Title: Re: Savebmp/savesprite
Post by: ampos on 2011-Mar-24
I have been making tests, using the following code:

Code (glbasic) Select

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)
Title: Re: Savebmp/savesprite
Post by: Kitty Hello on 2011-Mar-24
definitely a gfx card driver problem.