更新时间:2023-01-24 14:41:53
***的解决办法是在其中 [ ^ ]。
-KR
Best possible solution is here[^].
-KR
最糟糕的事情是使用SetPixel
。你***使用System.Drawing.Bitmap.LockBits
:
http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.lockbits%28v=vs .110%29.aspx [ ^ ]。
使用WPF,可以使用类System.Windows.Media.Imaging.WriteableBitmap
:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap%28v=vs.110% 29.aspx [ ^ ]。-SA
Worst thing to draw anything is usingSetPixel
. You should better useSystem.Drawing.Bitmap.LockBits
:
http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.lockbits%28v=vs.110%29.aspx[^].
With WPF, it can be done using the classSystem.Windows.Media.Imaging.WriteableBitmap
:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap%28v=vs.110%29.aspx[^].—SA
>