private void MenuMasic_Click(object sender, EventArgs e) { bool noPicture = this.NoPicture; if (!noPicture) { Rectangle region = this._selection.ToNormalRectangle(); region.X = (int)((float)this._selection.X / this.Curratio); region.Y = (int)((float)this._selection.Y / this.Curratio); region.Width = (int)((float)this._selection.Width / this.Curratio); region.Height = (int)((float)this._selection.Height / this.Curratio); int effectWidth = IniConfigSetting.Cur.GetConfigParamValue("ImageProcessSetting", "ImgPrcMosaicBlockSize", "10").ToInt(); Bitmap image = ImageHelper.AddMosaic(this._orignPicture.ToBitmap(), effectWidth, region); this.pictureBox1.Image = image; this.pictureBox1.Refresh(); } }