public void Close() { if (!slide.IsDisposed) { slide.Dispose(); } imgBmpBuf = new byte[Helper.BMP_BGRA_DATA_OFFSET + 4096 * 4096 * 4]; }
public void Dispose() { _generator.Dispose(); _image.Dispose(); }