width = (int)(maxLength * imageRatio);
}
//float x = (float)in.getWidth() / maxLength;
//float y = (float)in.getHeight() / maxLength;
res.setSize(width, height);
res.process();
return res.getOutputImage();
}
catch (OperationFailedException ofe)
{
return null;