문제

How can I fasten Bitmap Set/GetPixel method without using unsafe mode or any other solutions from codeproject like FastPixel or FastBitmap (which actually also uses unsafe mode).

도움이 되었습니까?

해결책

Here I found the answer Use System.Runtime.InteropServices.Marshal.Copy and no unsafe keyword is needed! Almost the same effective as unsafe method and still way way faster than get/sex pixel.

http://davidthomasbernal.com/blog/2008/03/13/c-image-processing-performance-unsafe-vs-safe-code-part-i/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top