Then you have to muck around with bitmap Headers, and all of that. Better even, you could preprocess the Bitmap, and write out a .raw file containing a single byte for each height value.

Z.