Save heightmap from Mesh-terrain.. Please help..

Blitz3D Forums/Blitz3D Programming/Save heightmap from Mesh-terrain.. Please help..

Hi!
In my terrain-editor, i need to export the mesh-terrain to a heightmap, but can someone help me how to do that? maybe a bit of code or something would be good.. :)