Package qupath.lib.gui.images.stores
Interface ImageRegionRenderer
- All Known Implementing Classes:
DefaultImageRegionStore
public interface ImageRegionRenderer
Interface for painting regions of an
ImageServer onto a Graphics object.-
Method Summary
Modifier and TypeMethodDescriptionvoidpaintRegion(ImageServer<BufferedImage> server, Graphics g, Shape clipShapeVisible, int zPosition, int tPosition, double downsampleFactor, BufferedImage imgThumbnail, ImageObserver observer, ImageRenderer renderer) Paint an image region.voidpaintRegionCompletely(ImageServer<BufferedImage> server, Graphics g, Shape clipShapeVisible, int zPosition, int tPosition, double downsampleFactor, ImageObserver observer, ImageRenderer renderer, long timeoutMilliseconds) Similar topaintRegion(ImageServer, Graphics, Shape, int, int, double, BufferedImage, ImageObserver, ImageRenderer), but wait until all the tiles have arrived (or abort if it is taking too long).
-
Method Details
-
paintRegionCompletely
void paintRegionCompletely(ImageServer<BufferedImage> server, Graphics g, Shape clipShapeVisible, int zPosition, int tPosition, double downsampleFactor, ImageObserver observer, ImageRenderer renderer, long timeoutMilliseconds) Similar topaintRegion(ImageServer, Graphics, Shape, int, int, double, BufferedImage, ImageObserver, ImageRenderer), but wait until all the tiles have arrived (or abort if it is taking too long).- Parameters:
server- the server representing the image that shown be paintedg- the graphics object upon which to paintclipShapeVisible- the visible shape representing the area of the graphics object that should be filledzPosition- the z-stack positiontPosition- the timepoint positiondownsampleFactor- the downsample factorobserver- anImageObserver(often ignored)renderer- anImageRendererto convert images to RGBtimeoutMilliseconds- Timeout after which a request is made from the PathImageServer directly, rather than waiting for tile requests.
-
paintRegion
void paintRegion(ImageServer<BufferedImage> server, Graphics g, Shape clipShapeVisible, int zPosition, int tPosition, double downsampleFactor, BufferedImage imgThumbnail, ImageObserver observer, ImageRenderer renderer) Paint an image region.- Parameters:
server- the server representing the image that shown be paintedg- the graphics object upon which to paintclipShapeVisible- the visible shape representing the area of the graphics object that should be filledzPosition- the z-stack positiontPosition- the timepoint positiondownsampleFactor- the downsample factorimgThumbnail- a thumbnail image; if not null, this will be used to 'fill the gaps'observer- anImageObserver(often ignored)renderer- anImageRendererto convert images to RGB
-