1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
package ij.plugin;
import java.awt.*;
import java.io.*;
import ij.*;
import ij.io.*;
/** This plugin implements the File/Import/Raw command. */
public class Raw implements PlugIn {
private static String defaultDirectory = null;
public void run(String arg) {
OpenDialog od = new OpenDialog("Open Raw...", arg);
String directory = od.getDirectory();
String fileName = od.getFileName();
if (fileName==null)
return;
ImportDialog d = new ImportDialog(fileName, directory);
d.openImage();
}
}
|