It's slow because the entire bitmap is locked, the pixel is updated and then
the bitmap is released again. Repeating this process a couple of times makes
it real slow. Using unsafe code you could lock the bitmap once do all your
pixel operations and release it afterwards. You should read the following
column by Eric Gunnerson :
http://msdn.microsoft.com/library/de...rp11152001.asp
HTH
Yves
"Peter" <yu******@hotmail.com> schreef in bericht
news:Oz**************@tk2msftngp13.phx.gbl...
Hi, I found the SetPixel performance is very poor. it took lots of time
to twist dots for a large image. I wonder if there is any other way to speed
it up. Thanks.
Peter
http://www.infopx.com