Thank you,

I would *still* like to know why pixel_to_bmap() wont write pixels to a 24-bit bmap, though. I can work around it using 32-bit bmaps, but its still annoying to not know the why of the problem.