I'm a little confused by the code. I've seen similar before, loads of times, but i've never attempted to use it. Would it be very difficult to modify that to use 32bpp ?