Convert Image To Tile Set

Community Forums/Developer Stations/Convert Image To Tile Set

IKG(Posted 2006) [#1]
Is there any program that can take a large image and convert it into a set of separate tiles? That would be extremely useful.

If not, can someone point me to an easy tutorial on writing and reading with pixmaps and all that ;)

I'd love to make my own, but writing and reading pixmaps is not as easy as I thought it would be. The tutorials on BlitzWiki are kind of screwed up..

Thanks!


tonyg(Posted 2006) [#2]
What result do you want?
If you have a 320*320 image and want 32*32 tiles then simply load it with LoadAnimImage.
If you want seperate images per tile then
mypixmap:TPixmap=LoadPixmap("blah")
temppixmap:TPixmap=Pixmapwindow(mypixmap,x,y,w,h)
savepixmappng(tempixmap,"Bah")
All you would need to do is loop X/Y for
imagewidth()/tilesizex and imageheight()/tilesizey


IKG(Posted 2006) [#3]
Wow, never even thought of making an animated image..

That's much better than anything I coulda wanted. Thanks so much tony :)