g.drawString(wmText, x, y);
}
ImageProcessor ip = new ImagePlus("temp", img).getProcessor();
// if the inputMimeType is image/gif, need to convert to RGB in any case
if (inputMimeType.equals("image/gif")) {
ip = ip.convertToRGB();
alreadyConvertedToRGB = true;
}
// causes scale() and resize() to do bilinear interpolation
ip.setInterpolate(true);
if (!op.equals("convert")) {