Sorry about the delayed reply. School has started and I´ve been trying to addapt to getting up at 6:45. This will/has seriously affect/ed my coding time.
Quote: " A suggestion to simplify and maybe increase performance:"
Thankyou for your help. I tried to do that but my attempt missed out the first line, yours doesn´t have that fault. Thanks. I´ve tested it and it came out at the same speed as the other code though that doesn´t matter as it makes it simpler and simple´s good.
Quote: " pp += PixelPitch; // (where is PixelPitch defined?)"
That´s i at the begining of the code as it only needs to be called once. I should have provided that that bit aswell realy.
dbLockPixels();
PixelPitch = dbGetPixelsPitch();
dbUnlockPixels();
Quote: "Another variation doing a single memory copy might be:"
Unfortunatly I don´t think it´s possible to write the whole thing at once. As BatVink mentioned in his tutorial some graphics cards add extra info to the end of each line meaning that one line isn´t width*depth apart from the next but width*depth+plus the extra info. Pixelpitch gets the full size of a line. (That´s how I´ve understood it, correct me if I´m wrong)
My signature has been erased by me because it's LARGE.
Thank you for the votez!1!