error in IJ.setTool(int tool)->setTool2()

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

error in IJ.setTool(int tool)->setTool2()

vidya
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