Grabimage not grabbing !?

BlitzMax Forums/BlitzMax Programming/Grabimage not grabbing !?

PaulJG(Posted 2005) [#1]
Something rather screwy tends to happen when I try to grab images bigger than 110 pixels.

I want to grab a section of the screen that is 512x512 pixels - although it will run the program without an error, the image it displays is not the right size or at the right offset. It's as though it starts to take a grab from inside the image rather than the top left !?.

I've got a x800 Raddy, which is capable of large texturemaps..

Any ideas please ?.

Function draw_map()

a=128
b=128

SetClsColor 0,0,0
Cls
mapimage=CreateImage(a,b)
	
	For y=1 To 13
		For x=1 To 12
			
		If map(x,y)<>0 DrawImage image,x*46,y*46
		Next
	Next
				
GrabImage mapimage,a,b

End Function



PaulJG(Posted 2005) [#2]
Sorry.. sorted it myself

Didnt realize the grab command takes the screen coords, and not the width and height perimeters.