I don't know how to do this, but this is what I want do:
- Zoom in/out an image with the scroll wheel.
- I don't want a blurry zoom in, but a pixelated zoom in.
- Zoom with starting point from where the cursor is.
- The pictureBox shall become bigger/smaller when I zoom (so that the image continues beyond the form edges).
This is how it should look:
Placing the cursor at the top of mickeys nose and zooming in
I can recognize the mouse wheel at least:
public Main()
{
InitializeComponent();
MouseWheel += new MouseEventHandler(mousewheel);
}
void mousewheel(object sender, MouseEventArgs e)
{
if (e.Delta > 0) { Zoom("in"); } // up
else if (e.Delta < 0) { Zoom("out"); } // down
}
public void Zoom(string in_or_out)
{
if (in_or_out == "in")
{
}
}