Hi Mark,
Thanks to your code, I was able to create a lens !!!
What we have done here is drawn a rectangle over a Image and then draw
a portion of bitmap onto the rectangle to get the zoom effect same a
you have done in ur code.
However, would appreciate if you could guide me as how I can resize the
rectangle, like if a move the mouse to the right edge or to the bottom
edge should be able to drag and resize the rectangle.
Iam able to do it, however not quite getting it smoothly. below is the
code snippet
if (rightBorder.Contains(new Point(e.X, e.Y)))
{
this.Cursor = Cursors.SizeWE;
if (rightdrag && e.Button== MouseButtons.Left)
{
rect.Width += ((e.X - dragPoint.X));// < 1 ? -2 : 2;
this.Refresh();
}
}
Need clarity also on how to maintain the position of mouse or cursor
as we drag the rectangle.( -or <-)
Much appreciated !!!
Masood
Mark R. Dawson wrote:
Hi Masood,
I posted a reply to something like this a while ago, the code allows you
to load a picture then move the mouse over it and it shows the area the mouse
moves over in a magnifier window, see:
http://groups.google.com/group/micro...4359b41171f10e
Hope that helps
Mark.
--
http://www.markdawson.org
"Masood" wrote:
Greetings,
Need help with regards to implementing a magnifying lens using C#, any
ideas, source code, algorithm any thing !!!
Thanks in advance
Regards
Masood