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)
RenderResult
RenderResult.getTargetImage()
holds an image of
width * height
.
(Called by the renderer
.)
init
in interface RenderResult
public RandomAccessibleInterval<ARGBType> getTargetImage()
RenderResult
(Called by the renderer
.)
getTargetImage
in interface RenderResult
public BufferedImage getBufferedImage()
public AffineTransform3D getViewerTransform()
RenderResult
(Called by the renderer
to set the
transform.)
getViewerTransform
in interface RenderResult
public double getScaleFactor()
RenderResult
getScaleFactor
in interface RenderResult
public void setScaleFactor(double scaleFactor)
RenderResult
setScaleFactor
in interface RenderResult
public void setUpdated()
RenderResult
target image
data was changed.
(Called by the renderer
.)
setUpdated
in interface RenderResult
public void patch(RenderResult patch, Interval interval, double ox, double oy)
RenderResult
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
Note that only data in interval
will be modified, although the
scaled and shifted patch
might fall partially outside.
patch
in interface RenderResult
Copyright © 2015–2021 Fiji. All rights reserved.