Picturebox + Picture

0

I have Picturebox1 with an image (cameras-hdv-merlin-courses.png) example:

private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

By hovering over her, I'd like you to zoom in, kind of understand.

How can I do this?

    
asked by anonymous 21.02.2016 / 03:22

1 answer

1

The effect itself is a bit tricky, however in this link you already have access to the source code well-detailed how to implement. In this link also has another example.

You can also consider creating a new bitmap instance:

Size newSize = new Size((int)(originalBitmap.Width * zoomFactor), (int)(originalBitmap.Height * zoomFactor));
Bitmap bmp = new Bitmap(originalBitmap, newSize);

Just follow the links below that you will get.

    
22.02.2016 / 13:45