Built in macro function to Java



Hey I need to use some built in macro functions directly in a Java code. for an example

getPixelSize(unit, pixelWidth, pixelHeight)

How can I use this directly in JAVA. I have referenced imagej library and import IJ library to the java programme.


Here an older thread of the ImageJ mailing list with a solution:


You could also lookup Java macro function implementations in the ImageJ sources.