Using Brush Tool in Java
Posted by
jck on
URL: http://imagej.273.s1.nabble.com/Using-Brush-Tool-in-Java-tp5002648.html
Hi,
i want to use the Brush tool of ImageJ in my own Java programm.
It is no problem to set the tool, but i cannot use it.
When a image is open i can draw on it, but all i get is an yellow frame, where the color should be.
I already tried to set up the color with:
Toolbar.setBackgroundColor() und Toolbar.setForegroundColor()
Maybe someone can help, or show me a tutorial how to do it, i could not find one.
This is how i call the Toolbar/Tool:
Toolbar t = new Toolbar();
Toolbar.setBrushSize(10);
t.setTool(7);
Another question:
Is there a plugin that splits an Image by Colors? (About 10 Colors, i only found the Color_Deconvolution, but it only can split 3 different colors).
Thanks in advance.
Michael.