I need to split an image

Miscellaneous Forums/Content Creation Tools/I need to split an image

I havent got photoshop and I need to split an image into 64 pieces 75x75 pixels each

write a small blitz app to do it ?

Ive only done 3D up until this point...

at a guess:

Graphics 800,600,0,2
SetBuffer BackBuffer()

Global imgOutName = "outBmp"

img = LoadImage("source.bmp")
tile = CreateImage(75,75)

DrawImage img,0,0

For y = 0 To 7
	For x = 0 To 7

		GrabImage tile,x*75, y*75
		SaveImage(tile,"c:"+imgOutName+Str(x)+Str(y)+".bmp")
	
	Next
Next


WaitKey()

End



thanks pertabio that worked great,
but why did it produce 77 pieces?

EDIT-oh it didnt they are just named wrongly