reference http://csharpexamples.com/fast-image-processing-c/ //// LockBits and Unsafe and parallel private void ProcessUsingLockbitsAndUnsafeAndParallel(Bitmap processedBitmap) { unsafe { BitmapData bitmapData = processedBitmap.LockBits( new Rectangle(0, 0, processedBitmap.Width, processedBitmap.Height), ImageLockMode.ReadWrite, processedBitmap.PixelFormat); int bytesPerPixel = System.Drawing.Bitmap.GetPixelFormatSize(processedBitmap.PixelFormat) / 8; int heightInPixels = bitmapData.Height; int widthInBytes = bitmapData.Width * bytesPerPixel; byte * PtrFirstPixel = ( byte *)bitmapData.Scan0; Parallel.For(0, h...