1 package ij.plugin.filter;
9 private static double angle = 15.0;
10 private static boolean interpolate =
true;
11 private static boolean firstTime;
12 private static boolean canceled;
23 public void run(ImageProcessor ip) {
27 GenericDialog gd =
new GenericDialog(
"Rotate",
IJ.
getInstance());
28 gd.addNumericField(
"Angle (degrees): ", angle, 1);
29 gd.addCheckbox(
"Interpolate", interpolate);
31 canceled = gd.wasCanceled();
34 angle = gd.getNextNumber();
35 if (gd.invalidNumber()) {
39 interpolate = gd.getNextBoolean();
43 ip.setInterpolate(interpolate);