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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bechir BejaouiRank #144 · 15.9K reputationPosted Jul 29, 2008, 10:34 AM EDT
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 BejaouiRank #144 · 15.9K reputationPosted Jul 29, 2008, 10:34 AM EDT
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 ;
}