g.setColor(new Color(100, 100, 100));
g.drawString(wmText, x + 2, y + 2);
g.setColor(new Color(240, 240, 240));
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")) {
if (op.equals("resize")) {
ip = resize(ip, newWidth);
} else if (op.equals("zoom")) {
ip = zoom(ip, zoomAmt);