error in IJ.setTool(int tool)->setTool2()
Posted by
vidya on
Jul 25, 2011; 4:47am
URL: http://imagej.273.s1.nabble.com/error-in-IJ-setTool-int-tool-setTool2-tp3683737.html
Hello ImageJ,
I am using imageJ methods without displaying the GUI. When I try to use IJ.setTool(Toolbar.OVAL), I get an exception at setTool2() private method at the following line.
g2d.setRenderingHint(RenderingHints. KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Its a NullPointerException that is thrown since g2d is null. Please let me know how I can solve this. I work on windows Vista.
thanks for any help
V. Chin