pictureBox1.SizeMode = PictureBoxSizeMode.Zoom
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (pictureBox1.Width < 1000)
{
pictureBox1.Width = Convert.ToInt32(pictureBox1.Width * 1.2);
pictureBox1.Height = Convert.ToInt32(pictureBox1.Height * 1.2);
}
}
if (e.Button == MouseButtons.Right)
{
if (pictureBox1.Width > 600)
{
pictureBox1.Width = Convert.ToInt32(pictureBox1.Width / 1.2);
pictureBox1.Height = Convert.ToInt32(pictureBox1.Height / 1.2);
}
}
}http://greatmaps.codeplex.com/
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (pictureBox1.Width < 1000)
{
pictureBox1.Width = Convert.ToInt32(pictureBox1.Width * 1.2);
pictureBox1.Height = Convert.ToInt32(pictureBox1.Height * 1.2);
}
}
if (e.Button == MouseButtons.Right)
{
if (pictureBox1.Width > 600)
{
pictureBox1.Width = Convert.ToInt32(pictureBox1.Width / 1.2);
pictureBox1.Height = Convert.ToInt32(pictureBox1.Height / 1.2);
}
}
}http://greatmaps.codeplex.com/
http://msdn.microsoft.com/zh-cn/library/z89a4506(v=VS.80).aspx