Re: help for a beginner in plugin with the ImageJ source code (use of macro functions)...
Posted by
Michael Schmid on
May 07, 2010; 8:27am
URL: http://imagej.273.s1.nabble.com/help-for-a-beginner-in-plugin-with-the-ImageJ-source-code-use-of-macro-functions-tp3688273p3688274.html
Hi Paul,
many of the macro commands are static functions in ij.IJ. E.g.,
IJ.openAsString(String path).
If you don't find it there, you have to look at
ij.macro.Functions.java to see what java code they actually
correspond to.
Michael
________________________________________________________________
On 7 May 2010, at 00:24, Paul Dufouleur wrote:
> Hi everyone!
>
> I wrote some macro with ImageJ and I try rewrote it (and some
> others) in Java with the source code of ImageJ... but I can't
> manage to understand how to use functions we can find in
> "MacroConstants" that were used in the macro, as "isOpen",
> "nImages" or "openAsString" in the file "Functions". I understand
> that there is a relation with what is called "token", but I can't
> use it...
>
> Can someone show me how to use it for one of these functions?
>
> Thanks,
>
> Paul.