public class MBFImageRenderer extends MultiBandRenderer<Float,MBFImage,FImage>
ImageRenderer for MBFImage images.hints, targetImage| Constructor and Description |
|---|
MBFImageRenderer(MBFImage targetImage)
Construct with given target image.
|
MBFImageRenderer(MBFImage targetImage,
RenderHints hints)
Construct with given target image and rendering hints.
|
| Modifier and Type | Method and Description |
|---|---|
Float[] |
defaultBackgroundColour()
Get the default foreground colour.
|
Float[] |
defaultForegroundColour()
Get the default foreground colour.
|
protected void |
drawHorizLine(int x1,
int x2,
int y,
Float[] col)
Draw a horizontal line with the specified colour.
|
void |
drawImage(MBFImage image,
int x,
int y)
Draw the provided image at the given coordinates.
|
protected void |
drawImage3(MBFImage image,
int x,
int y) |
protected Float[] |
sanitise(Float[] colour)
Sanitize the colour given to fit this image's pixel type.
|
drawImage, drawImage, drawLine, drawLine, drawLine, drawPoint, drawPolygondrawConnectedPoints, 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, setRenderHintspublic MBFImageRenderer(MBFImage targetImage)
targetImage - the target image.public MBFImageRenderer(MBFImage targetImage, RenderHints hints)
targetImage - the target image.hints - the render hintspublic Float[] defaultBackgroundColour()
ImageRendererdefaultBackgroundColour in class ImageRenderer<Float[],MBFImage>public Float[] defaultForegroundColour()
ImageRendererdefaultForegroundColour in class ImageRenderer<Float[],MBFImage>public void drawImage(MBFImage image, int x, int y)
drawImage in class ImageRenderer<Float[],MBFImage>image - Image to draw.x - x-coordinatey - y-coordinateprotected void drawImage3(MBFImage image, int x, int y)
protected void drawHorizLine(int x1, int x2, int y, Float[] col)
ImageRendererdrawHorizLine in class ImageRenderer<Float[],MBFImage>x1 - starting x (inclusive)x2 - ending x (inclusive)y - ycol - the colourprotected Float[] sanitise(Float[] colour)
ImageRenderersanitise in class ImageRenderer<Float[],MBFImage>