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.
Zoom option in Mouse Scroll
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.


FroglegRank #1,020 · 1.9K reputationPosted May 13, 2011, 10:33 PM EDT
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
Farooque AliRank #7,940 · 231 reputationPosted May 13, 2011, 10:39 PM EDT
Thanks. Here am doing the Zooming from 25% to 400% how to incorporate my code in to this Event. Can you please tell me.
FroglegRank #1,020 · 1.9K reputationPosted May 13, 2011, 11:15 PM EDT
FroglegRank #1,020 · 1.9K reputationPosted May 13, 2011, 11:27 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted May 14, 2011, 9:37 AM EDT