public class ContourRenderer extends MBFImageRenderer
MBFImageRenderer
for drawing Contour
s.hints, targetImage
Constructor and Description |
---|
ContourRenderer(MBFImage targetImage)
Construct with the given target image.
|
Modifier and Type | Method and Description |
---|---|
void |
drawContours(Contour root)
Draw the given contour.
|
static MBFImage |
drawContours(MBFImage imgC,
Contour root)
Utility function to quickly draw the contour to the image.
|
defaultBackgroundColour, defaultForegroundColour, drawHorizLine, drawImage, drawImage3, sanitise
drawImage, drawImage, drawLine, drawLine, drawLine, drawPoint, drawPolygon
drawConnectedPoints, drawCubicBezier, drawImage, drawLine, drawLine, drawLine, drawLine, drawLine, drawLines, drawPath, drawPaths, drawPoints, drawPolygon, drawPolygonFilled, drawQuadBezier, drawShape, drawShape, drawShapeFilled, drawText, drawText, drawText, drawText, drawText, drawText, drawText, drawText, getImage, getRenderHints, setImage, setRenderHints
public ContourRenderer(MBFImage targetImage)
targetImage
- the target imagepublic static MBFImage drawContours(MBFImage imgC, Contour root)
imgC
- the target imageroot
- the contourpublic void drawContours(Contour root)
root
- the contour.