|
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
|