looking for something like pastecontrol for plugin lineto command?
Posted by Lance Davidson on Feb 06, 2008; 8:47pm
URL: http://imagej.273.s1.nabble.com/looking-for-something-like-pastecontrol-for-plugin-lineto-command-tp3697270.html
Does anyone have a suggestion for drawing lines within a plugin using
bitwise AND...
Currently:
ImagePlus impTwo = WindowManager.getCurrentImage();
ImageProcessor ipTwo = impTwo.getProcessor();
ipTwo.moveTo((int)x1,(int)y1);
ipTwo.lineTo((int)x2,(int)y2);
This overwrites the pixels but we'd rather _AND_ with the existing pixels.
We have a work-around involving drawing to a blank image and using
calculate... but it is really slow.
Lance Davidson