|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.Roi
ij.gui.ImageRoi
public class ImageRoi
An ImageRoi is an Roi that overlays an image.
ImagePlus.setOverlay(ij.gui.Overlay)
,
Serialized FormField Summary |
---|
Fields inherited from class ij.gui.Roi |
---|
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, ignoreClipRect, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax |
Constructor Summary | |
---|---|
ImageRoi(int x,
int y,
BufferedImage bi)
Creates a new ImageRoi from a BufferedImage. |
|
ImageRoi(int x,
int y,
ImageProcessor ip)
Creates a new ImageRoi from a ImageProcessor. |
Method Summary | |
---|---|
Object |
clone()
Returns a copy of this roi. |
void |
draw(Graphics g)
|
double |
getOpacity()
Returns the current opacity. |
ImageProcessor |
getProcessor()
|
byte[] |
getSerializedImage()
Returns a serialized version of the image. |
boolean |
getZeroTransparent()
|
void |
rotate(double angle)
|
void |
setAngle(double angle)
|
void |
setComposite(Composite composite)
Sets the composite mode. |
void |
setOpacity(double opacity)
Sets the composite mode using the specified opacity (alpha), in the range 0.0-1.0, where 0.0 is fully transparent and 1.0 is fully opaque. |
void |
setProcessor(ImageProcessor ip)
|
void |
setZeroTransparent(boolean zeroTransparent)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageRoi(int x, int y, BufferedImage bi)
public ImageRoi(int x, int y, ImageProcessor ip)
Method Detail |
---|
public void draw(Graphics g)
draw
in class Roi
public void setComposite(Composite composite)
public void setOpacity(double opacity)
public byte[] getSerializedImage()
public double getOpacity()
public void rotate(double angle)
public void setAngle(double angle)
public void setZeroTransparent(boolean zeroTransparent)
public boolean getZeroTransparent()
public Object clone()
Roi
clone
in class Roi
public ImageProcessor getProcessor()
public void setProcessor(ImageProcessor ip)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |