Hi,
am doing the application using Image Processing techniques.In that Zoom option also included, I have done the Zoom option through button click. But i have to dont that in Mouse Scrolling option. If anyone please help me to complete this task.
I have attached my code for Zooming option.
Loading

Suthish NairPosted May 14, 2011, 1:37 PM
FroglegPosted May 14, 2011, 3:27 AM
FroglegPosted May 14, 2011, 3:15 AM
Farooque AliPosted May 14, 2011, 2:39 AM
Thanks. Here am doing the Zooming from 25% to 400% how to incorporate my code in to this Event. Can you please tell me.
FroglegPosted May 14, 2011, 2:33 AM
protected override void OnMouseWheel(MouseEventArgs e)
{
if (e.Delta > 0)
{
MessageBox.Show("up");
}
else if (e.Delta < 0)
{
MessageBox.Show("down");
}
}
One detent = 120
look here for more info
http://msdn.microsoft.com/en-us/library/system.windows.forms.mouseeventargs.delta.aspx#Y526