public class BufferedImageRenderResult extends Object implements RenderResult
| Constructor and Description |
|---|
BufferedImageRenderResult() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getBufferedImage() |
double |
getScaleFactor()
Get the scale factor from target coordinates to screen resolution.
|
RandomAccessibleInterval<ARGBType> |
getTargetImage()
Get the image to render to.
|
AffineTransform3D |
getViewerTransform()
Get the viewer transform used to render image.
|
void |
init(int width,
int height)
Allocate storage such that
RenderResult.getTargetImage() holds an image of
width * height. |
void |
patch(RenderResult patch,
Interval interval,
double ox,
double oy)
Fill in
interval with data from patch, scaled by the
relative scale between this RenderResult and patch, and
shifted such that (0,0) of the patch is placed at
(ox,oy) of this RenderResult |
void |
setScaleFactor(double scaleFactor)
Set the scale factor from target coordinates to screen resolution.
|
void |
setUpdated()
Notify that the
target image data was changed. |
public void init(int width,
int height)
RenderResultRenderResult.getTargetImage() holds an image of
width * height.
(Called by the renderer.)
init in interface RenderResultpublic RandomAccessibleInterval<ARGBType> getTargetImage()
RenderResult
(Called by the renderer.)
getTargetImage in interface RenderResultpublic BufferedImage getBufferedImage()
public AffineTransform3D getViewerTransform()
RenderResult
(Called by the renderer to set the
transform.)
getViewerTransform in interface RenderResultpublic double getScaleFactor()
RenderResultgetScaleFactor in interface RenderResultpublic void setScaleFactor(double scaleFactor)
RenderResultsetScaleFactor in interface RenderResultpublic void setUpdated()
RenderResulttarget image data was changed.
(Called by the renderer.)
setUpdated in interface RenderResultpublic void patch(RenderResult patch, Interval interval, double ox, double oy)
RenderResultinterval with data from patch, scaled by the
relative scale between this RenderResult and patch, and
shifted such that (0,0) of the patch is placed at
(ox,oy) of this RenderResult
Note that only data in interval will be modified, although the
scaled and shifted patch might fall partially outside.
patch in interface RenderResultCopyright © 2015–2021 Fiji. All rights reserved.