Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
PolygonFiller Class Reference

Public Member Functions

 PolygonFiller ()
 
 PolygonFiller (int[] x, int[] y, int n)
 
void setPolygon (int[] x, int[] y, int n)
 
void fill (ImageProcessor ip, Rectangle r)
 
ImageProcessor getMask (int width, int height)
 

Detailed Description

This class fills polygons using the scan-line filling algorithm described at "http://www.cs.rit.edu/~icss571/filling/".

Definition at line 9 of file PolygonFiller.java.

Constructor & Destructor Documentation

PolygonFiller ( )
inline

Constructs a PolygonFiller.

Definition at line 32 of file PolygonFiller.java.

PolygonFiller ( int[]  x,
int[]  y,
int  n 
)
inline

Constructs a PolygonFiller using the specified polygon.

Definition at line 36 of file PolygonFiller.java.

Member Function Documentation

void fill ( ImageProcessor  ip,
Rectangle  r 
)
inline

Fills the polygon using the ImageProcessor's current drawing color.

Definition at line 103 of file PolygonFiller.java.

ImageProcessor getMask ( int  width,
int  height 
)
inline

Returns a byte mask containing a filled version of the polygon.

Definition at line 108 of file PolygonFiller.java.

void setPolygon ( int[]  x,
int[]  y,
int  n 
)
inline

Specifies the polygon to be filled.

Definition at line 41 of file PolygonFiller.java.


The documentation for this class was generated from the following file: