DRAWING

Read Sony Mavica preview images

Done- here's how it works internally:
You pass it a filename, vref, and x, y, coordinates where you want it to display. It checks the file size to see if it matches a certain length. If so, it creates a pointer the size of the file and pops the contents of the file in there.(The files are a little bit bigger than 4k) Then it traverses the file byte by byte, as if it were reading it from the file itself. It basically does the same thing as reading a file byte by byte, only when you load it into RAM, it's much faster.
So then it does it's little calculating routine, and makes the R,G,B values from them. Then I turn these colors into "real" RGB colors(Rick Brown taught me how to do this a long time back), then I plot the point, and increment the X%,Y% coordinates. (And do a little cleanup afterwards)

Best part is that you can make it an include file if you so wish- no globals!