An elliptical area can be surrounded by a rectangle. So I think the best way
is to catch the mouse_up and mouse_down events to select a rectangle on your
screen. Then you can draw the ellips inside the rectangle by getting the
coordinates of each point and getting that pixel and xor'ing it with
(256,256,256). To do this fast I think you will need to use unsafe
programming in stead of getpixel(), setpixel() for every pixel you want to
change. If you also use the mouse_move event you will be able to draw it
dynamically.
Yves
"suresh" <su****@discussions.microsoft.com> schreef in bericht
news:1c*****************************@phx.gbl...
I want to indicate the area is being selected.-----Original Message-----
Suresh,
You want to select it? Do you want an object
representation, or do youwant to indicate that the area is selected when it is
displayed? What areyou trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"suresh" <su****@discussions.microsoft.com> wrote in
messagenews:1c*****************************@phx.gbl... Hi All,
How to select a Elliptical area from an image in .NET.
regards
Suresh
.