private void _btnCancel_Click(object sender, EventArgs e) { _mainForm.FilterCancel_Click(_firstTime, _originalBitmap, false); _cell.SetWindowLevel(_oldWindowWidth, _oldWindowCenter); _cell.Invalidate(); }
private void ApplyFilter() { _mainForm.FilterRunCommand(_command, false, false); if (_cell.Image.BitsPerPixel == 16) { int orignalPage = _cell.Image.Page; _cell.Image.Page = _cell.ActiveSubCell + 1; GetLinearVoiLookupTableCommand voiLut = new GetLinearVoiLookupTableCommand(); voiLut.Run(_cell.Image); _cell.Image.Page = orignalPage; _cell.SetWindowLevel(_cell.ActiveSubCell, (int)voiLut.Width, (int)voiLut.Center); } _cell.Invalidate(); }