ImageCanvasWithOverlay Update
Posted by Peter Sebastian Masny on Feb 07, 2009; 11:36pm
URL: http://imagej.273.s1.nabble.com/ImageCanvasWithOverlay-Update-tp3693817.html
Hi all,
ImageCanvasWithOverlay now has a few Roi specific methods. The added code:
public void overlayDrawRoi(Color c) {
overlayDrawRoi(imp.getRoi(), c);
}
public void overlayFillRoi(Color c) {
overlayFillRoi(imp.getRoi(), c);
}
public void overlayDrawRoi(Roi roi, Color c) {
if (roi == null) return;
Polygon polygon = roi.getPolygon();
getColoredGraphics(c).drawPolygon(polygon);
}
public void overlayFillRoi(Roi roi, Color c) {
if (roi == null) return;
Polygon polygon = roi.getPolygon();
getColoredGraphics(c).fillPolygon(polygon);
}
See the website for downloads, and a full description of the plugin.
Peter