public class ImageOverlay extends Object implements OverlayedImageCanvas.Overlay
Constructor and Description |
---|
ImageOverlay() |
ImageOverlay(ij.process.ImageProcessor imp) |
Modifier and Type | Method and Description |
---|---|
void |
paint(Graphics g,
int x,
int y,
double magnification)
Paint this overlay on the given graphic device.
|
void |
setComposite(Composite composite)
Set composite mode
|
void |
setImage(ij.process.ImageProcessor imp)
Set image processor to be painted in the overlay
|
public ImageOverlay()
public ImageOverlay(ij.process.ImageProcessor imp)
public void paint(Graphics g, int x, int y, double magnification)
OverlayedImageCanvas.Overlay
paint
in interface OverlayedImageCanvas.Overlay
g
- the graphic device provided by the OverlayedImageCanvas
x
- the top-left corner x-coordinate of the image rectangle currently displayed in the OverlayedImageCanvas
y
- the top-left corner y-coordinatemagnification
- the OverlayedImageCanvas
current magnificationpublic void setComposite(Composite composite)
setComposite
in interface OverlayedImageCanvas.Overlay
composite
- composite modepublic void setImage(ij.process.ImageProcessor imp)
imp
- input imageCopyright © 2015–2021 Fiji. All rights reserved.