public Bitmap GetImg() { Bitmap tmp = ScreenshotHelper.GetWindowCapture(PokeMMOClient); imgCount++; if (imgCount > 20) { imgCount = 0; GC.Collect(); } ScreenshotBuffer = tmp; UpdateBitmap?.Invoke(this, tmp); return(tmp); }