Elliptical

  • Thread starter Thread starter suresh
  • Start date Start date
Suresh,

You want to select it? Do you want an object representation, or do you
want to indicate that the area is selected when it is displayed? What are
you trying to do?
 
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 you
want to indicate that the area is selected when it is displayed? What are
you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi All,

How to select a Elliptical area from an image in .NET.

regards
Suresh


.
 
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 said:
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 you
want to indicate that the area is selected when it is displayed? What are
you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi All,

How to select a Elliptical area from an image in .NET.

regards
Suresh


.
 
Back
Top