Getpixel/Setpixel are freakingly slow, check out the DMA samples using safe arrays on unlimited realities [/B][/QUOTE] if that's not fast enough, you can code the algoritm in c++ with best performance.