ij.gui
public class ImageRoi extends 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 and Description |
---|
ImageRoi(int x,
int y,
java.awt.image.BufferedImage bi)
Creates a new ImageRoi from a BufferedImage.
|
ImageRoi(int x,
int y,
ImageProcessor ip)
Creates a new ImageRoi from a ImageProcessor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a copy of this roi.
|
void |
draw(java.awt.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(java.awt.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) |
abortPaste, addRoiListener, clipRectMargin, contains, copyAttributes, drawOverlay, drawPixels, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getAngle, getBoundingRect, getBounds, getColor, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatPolygon, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getLength, getMagnification, getMask, getName, getPasteMode, getPolygon, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, grow, handleMouseDown, handleMouseDrag, handleMouseUp, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isHandle, isLine, isVisible, lineCircleIntersection, mouseDownInHandle, mouseDragged, mouseMoved, mouseReleased, moveHandle, notifyListeners, nudge, nudgeCorner, removeRoiListener, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setDrawOffset, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, showStatus, startPaste, subPixelResolution, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLine
public ImageRoi(int x, int y, java.awt.image.BufferedImage bi)
public ImageRoi(int x, int y, ImageProcessor ip)
public void setComposite(java.awt.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 java.lang.Object clone()
Roi
public ImageProcessor getProcessor()
public void setProcessor(ImageProcessor ip)