org.esa.beam.util
Class ShapeRasterizer.BresenhamLineRasterizer
java.lang.Object
org.esa.beam.util.ShapeRasterizer.BresenhamLineRasterizer
- All Implemented Interfaces:
- ShapeRasterizer.LineRasterizer
- Enclosing class:
- ShapeRasterizer
public static class ShapeRasterizer.BresenhamLineRasterizer
- extends Object
- implements ShapeRasterizer.LineRasterizer
The Bresenham Algorithm is the default algorithm used to rasterize lines.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeRasterizer.BresenhamLineRasterizer
public ShapeRasterizer.BresenhamLineRasterizer()
rasterize
public void rasterize(int x0,
int y0,
int x1,
int y1,
ShapeRasterizer.LinePixelVisitor visitor)
- Description copied from interface:
ShapeRasterizer.LineRasterizer
- Rasterizes a line by visiting all pixels between the two line end-points.
- Specified by:
rasterize in interface ShapeRasterizer.LineRasterizer
- Parameters:
x0 - x of the first end-pointy0 - y of the first end-pointx1 - x of the seconf end-pointy1 - y of the seconf end-pointvisitor - the pixel visitor
Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.