Documentation of 'ij.process.PolygonFiller' Java class
PolygonFiller
ij.process

Class PolygonFiller



  • public class PolygonFiller
    extends java.lang.Object
    This class fills polygons using the scan-line filling algorithm described at "http://www.cs.rit.edu/~icss571/filling/".
    • Constructor Summary

      Constructors 
      Constructor and Description
      PolygonFiller()
      Constructs a PolygonFiller.
      PolygonFiller(int[] x, int[] y, int n)
      Constructs a PolygonFiller using the specified polygon.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void fill(ImageProcessor ip, java.awt.Rectangle r)
      Fills the polygon using the ImageProcessor's current drawing color.
      ImageProcessor getMask(int width, int height)
      Returns a byte mask containing a filled version of the polygon.
      void setPolygon(int[] x, int[] y, int n)
      Specifies the polygon to be filled.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolygonFiller

        public PolygonFiller()
        Constructs a PolygonFiller.
      • PolygonFiller

        public PolygonFiller(int[] x,
                             int[] y,
                             int n)
        Constructs a PolygonFiller using the specified polygon.
    • Method Detail

      • setPolygon

        public void setPolygon(int[] x,
                               int[] y,
                               int n)
        Specifies the polygon to be filled.
      • fill

        public void fill(ImageProcessor ip,
                         java.awt.Rectangle r)
        Fills the polygon using the ImageProcessor's current drawing color.
      • getMask

        public ImageProcessor getMask(int width,
                                      int height)
        Returns a byte mask containing a filled version of the polygon.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.