if (consumer != null)
    public void setDimensions(int width, int height)    {	srcWidth = width;	srcHeight = height;	/* If either destHeight or destWidth is < 0, the image should	   maintain its original aspect ratio.  When both are < 0,	   just maintain the original width and height. */	if (destWidth < 0 && destHeight < 0)        {	    destWidth = width;	    destHeight = height;	}	else if (destWidth < 0)	{	    destWidth = (int) (width * ((double) destHeight / srcHeight));	}	else if (destHeight < 0)	{	    destHeight = (int) (height * ((double) destWidth / srcWidth));	}	consumer.setDimensions(destWidth, destHeight);    }