That goes into the direction of using a contouring algo, that creates closed polygons instead of lines - what CONREC does. I remember, that I once had such an algo in mind, but never found the time to implement it. Having such an contouring allows to draw filled polygons instead of raster data.

If you like you can do some research if you can find resources about these type of algos ?

Uwe