C# – Faster Alternatives to SetPixel and GetPixel for Bitmaps for Windows Forms App

The immediately usable code public class DirectBitmap : IDisposable { public Bitmap Bitmap { get; private set; } public Int32[] Bits { get; private set; } public bool Disposed { get; private set; } public int Height { get; private set; } public int Width { get; private set; } protected GCHandle BitsHandle { get; … Read more