Controlling ImageJ using C# and IKVM 8.9.1.
ij.ImageJ ijm = new ij.ImageJ();
ImagePlus image = new ImagePlus("C:/test.jpeg");
// Process the image
image.getProcessor().invert();
// Save the processed image
string outputPath = "C:/ImageJ/test.jpeg"; // Replace with your output path
ij.IJ.save(image, outputPath);