/ this.pictureBox1.Image.Save(this.saveFileDialog1.FileName); // } // // private void menuItem2_Click(object sender, System.EventArgs e) // { // System.Drawing.Image img = this.pictureBox1.Image; // System.Drawing.Image.GetThumbnailImageAbort myCallback = new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback); // // System.Drawing.Image img1 = img.GetThumbnailImage(System.Convert.ToInt32(img.Width*0.5),System.Convert.ToInt32(img.Height*0.5),myCallback,IntPtr.Zero); // this.pictureBox1.Image = img1; // } // public bool ThumbnailCallback() // { // return false; // } // // private void menuItem3_Click(object sender, System.EventArgs e) // { // System.Drawing.Image img = this.pictureBox1.Image; // System.Drawing.Image.GetThumbnailImageAbort myCallback = new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback); // // System.Drawing.Image img1 = img.GetThumbnailImage(System.Convert.ToInt32(img.Width*1.5),System.Convert.ToInt32(img.Height*1.5),myCallback,IntPtr.Zero); // this.pictureBox1.Image = img1; // }
} }
上一页 [1] [2] [3] |