int x,
int y,
int width,
int height) throws jjil.core.Error {
if (x<0 || y<0) {
throw new Error(
Error.PACKAGE.CORE,
jjil.core.ErrorCodes.BOUNDS_OUTSIDE_IMAGE,
new Integer(x).toString(),
new Integer(y).toString(),
null);
}
if (width<=0 || height<=0) {
throw new Error(
Error.PACKAGE.ALGORITHM,
ErrorCodes.INPUT_IMAGE_SIZE_NEGATIVE,
new Integer(width).toString(),
new Integer(height).toString(),
null);