looking for something like pastecontrol for plugin lineto command?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

looking for something like pastecontrol for plugin lineto command?

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