odd problem with LoadPixmap

BlitzMax Forums/BlitzMax Programming/odd problem with LoadPixmap

jtollison78(Posted 2007) [#1]
It's entirely possible that I'm simply overlooking something silly, but could someone please tell e under what conditions the following code should fail


Global image1:TPixmap
Global image2:TPixmap

Graphics 800,600
SetColor 255,255,255

DrawLine(0,0,100,100)
image1 = GrabPixmap(0,0,100,100)

DrawPixmap(image1,150,150)
SavePixmapPNG(image1, "testpix.png")
image2 = LoadPixmap("testpix.png")

DrawPixmap(image2,300,300)

Flip
WaitKey()




I'm running under Vista on a fairly new laptop(1.73 dual/ 2 Gig)


Thanks,
John


jtollison78(Posted 2007) [#2]
I realised my post may have been a little vague. Specifically, I am getting no error, but the third line segment is not showing up. I got a friend to run the same cade, and he got the three segments you would expect.

John


gameshastra(Posted 2007) [#3]
hi,

could u explain how do i save the pixmap in a specific file location instead of the currrent directory, i meant during the runtime user can able to choose the directory and store it. And how can i display it back into the screen.


Brucey(Posted 2007) [#4]
bb-miler, you should start yourself a new topic for this.
Go to the BlitzMax Programming forum, and click on the "Create Topic" link. (or follow THIS LINK)



As for jtollison78's problem, it may well be a driver issue.
Have you tried forcing OpenGL / DirectX modes, rather than letting Blitz decide?


jtollison78(Posted 2007) [#5]
I have not tried forcing a different driver. Thanks for the suggestion.

John