public static class ShapeRasterizer.BresenhamLineRasterizer extends Object implements ShapeRasterizer.LineRasterizer
| Constructor and Description |
|---|
BresenhamLineRasterizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
rasterize(int x0,
int y0,
int x1,
int y1,
ShapeRasterizer.LinePixelVisitor visitor)
Rasterizes a line by visiting all pixels between the two line end-points.
|
public void rasterize(int x0,
int y0,
int x1,
int y1,
ShapeRasterizer.LinePixelVisitor visitor)
ShapeRasterizer.LineRasterizerrasterize in interface ShapeRasterizer.LineRasterizerx0 - 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 visitorCopyright © 2014–2015 European Space Agency (ESA). All rights reserved.