Thanks for the quick reply!

We will try the embedding plus do the calculation only per line.

I have tested only the getpixel part without any calculation and shading and that was also slow. This leads me that this slows us down.

Also TurboPixel only works on 24 bit, how can I get pixel color on 32 bit? (is there a function for this in Delphi that works on DD surface?)