Savebmp/savesprite

Previous topic - Next topic

ampos

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)

MrTAToad

got any code and/or graphics ?

ampos

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.

Millerszone

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.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

ampos

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.

MrTAToad

What ATI model ?

ampos

X1200 & 2400hd (or is 4200?)

MrTAToad

Try doing :

Code (glbasic) Select
print "HELLO",10,10
SHOWSCREEN
print "HELLO",10,10
SAVEBMP "file.bmp"

ampos


MrTAToad

It sounds like the graphics driver or screen resolution is causing this problem, though its surprising for the 4200

Kitty Hello

can you grabsprite and drawsprite?
If that works - are you sure you can write to the directory you want?

ampos

#11
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)

Kitty Hello

definitely a gfx card driver problem.