Maybe, this helps. Its about pixel_to_bmap:
http://www.opserver.de/ubb7/ubbthreads.p...true#Post348321