protected override void Dispose(bool Managed) { if (Data != null) { Unlock(); } if (InternalBitmap != null) { InternalBitmap.Dispose(); InternalBitmap = null; } }