Ellipse filling graphics method

Computer graphics processing and selective visual display system – Computer graphics processing – Shape generating

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Reexamination Certificate

active

06226014

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to an ellipse filling graphics method, and more particularly, to a method for filling the interior of an ellipse with a single color by writing predetermined color data to memory positions corresponding to pixels in the ellipse being a basic graphics figure.
2. Description of Related Art
In general, graphic displays are used in a wide range of fields, for example, the graphic user interface of computers. When an object is expressed in such fields, it is divided into dots, lines, triangles, rectangles, circles or ellipses. Circles and ellipses in particular require extensive processing time. In addition, it takes a lot of time to fill the interiors of the circle and the ellipse with a color.
FIG. 1
shows a conventional circle filling method. It is assumed for convenience's sake that the center of the circle in
FIG. 1
is at the origin (
0
,
0
) of a coordinate system. First, when the circumference of the circle is divided by 8, a point (x,y) on a first octant is obtained by moving one pixel at a time from a point (
0
,r) to a point where x is equal to y, using a well-known midpoint circle algorithm. Points (−x,y), (y,x), (−y,x), (y,−x), (−y,−x), (x,−y), and (−x,−y) are calculated from the point (x,y) on the first octant. Then, the points in positions symmetrical with respect to the y axis are connected to each other by straight lines, whereby the circle is filled. That is, each pair of the points (x,y) and (−x,y), (y,x) and (−y,x), (y,−x) and (−y,−x), and (x,−y) and (−x,−y) are connected to each other by a straight line. This procedure repeats from the point (
0
,r) to the point where x is equal to y.
An ellipse case corresponds to an extension of the circle case.
FIG. 2
shows a conventional ellipse filling method. The circumference of an ellipse is divided into four quadrants to utilize the symmetry of ellipses. It is assumed for convenience's sake that the origin of the ellipse in
FIG. 2
is at a point (
0
,
0
) as in the case of FIG.
1
. When half the major axis of the ellipse (hereinafter referred to as the long radius of the ellipse) is a and half the minor axis of the ellipse (hereinafter referred to as the short radius thereof) is b, a point (x,y) on the circumference of the first quadrant is obtained by moving one pixel at a time from a point (
0
,b) to a point (a,
0
). Points (−x,y), (x,−y) and (−x,−y) are obtained from the point (x,y). The points (x,y) and (−x,y) are connected to each other by a straight line, and likewise for the points (x,−y) and (−x,−y). This procedure repeats between the points (
0
,b) and (a,
0
).
However, in the method of drawing a circle or an ellipse, the interiors of the circle and the ellipse are filled by drawing
2
r
and
2
b
straight lines, respectively, which requires a lot of processing time.
SUMMARY OF THE INVENTION
It is an object of the present invention to provide an ellipse filling graphics method by which processing speed is increased, by filling a rectangle within a circle or an ellipse through fast memory block copying, and drawing straight lines only in the remaining portion.
To accomplish the above object, there is provided an ellipse filling graphics method in which the interior of an ellipse is filled with a single color by writing color data to memory positions designated by addresses corresponding to pixels in the ellipse, the method comprising the steps of: (a) selecting a rectangle which is included in the ellipse; (b) writing color data to memory positions designated by addresses corresponding to pixels inside the selected rectangle; and (c) writing color data to memory positions designated by addresses corresponding to pixels inside the ellipse but outside the selected rectangle.


REFERENCES:
patent: 62-72078 (1987-02-01), None
patent: 6-83971 (1994-03-01), None

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Ellipse filling graphics method does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Ellipse filling graphics method, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Ellipse filling graphics method will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2479163

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.