how to zoom a image at runtime???
Any body help me out.
Thanks in advance.
how to zoom a image at runtime???
Any body help me out.
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Jul 29, 2008, 2:34 PM
public void Zoom(int z )
{
//make use of the z to adjust your zoom
Size ImageSize = new Size(pictureBox1.Width + z ,pictureBox1.Height + z );
Bitmap oBitmap = new Bitmap (pictureBox1.Image ,X);
pictureBox1.Image = oBitmap ;
}
Bechir BejaouiPosted Jul 29, 2008, 2:34 PM
public void Zoom(int z )
{
//make use of the z to adjust your zoom
Size ImageSize = new Size(pictureBox1.Width + z ,pictureBox1.Height + z );
Bitmap oBitmap = new Bitmap (pictureBox1.Image ,X);
pictureBox1.Image = oBitmap ;
}