public void setDimensions(int width, int height) { System.out.println("setDimension " + width + "," + height); if (dstWidth < 0) { dstWidth = width - dstX; } if (dstHeight < 0) { dstHeight = height - dstY; } if (dstWidth <= 0 || dstHeight <= 0) { imageComplete(STATICIMAGEDONE); } else if (intPixels == null && dstModel == ColorModel.getRGBdefault()) { intPixels = new int[dstWidth * dstHeight]; dstScansize = dstWidth; } status |= (ImageObserver.WIDTH | ImageObserver.HEIGHT);
public synchronized void setDimensions(int width, int height) {    if (this.width < 0) this.width = width - x;     if (this.height < 0) this.height = height - y;  if (scansize < 0) scansize = this.width;  if (int_pixel_buffer == null) int_pixel_buffer = new int[this.width * this.height];  if (byte_pixel_buffer == null) byte_pixel_buffer = new byte[this.width * this.height];
	public void setDimensions(int width, int height) {		System.out.println("setDimension " + width + "," + height);		if (dstWidth < 0) {			dstWidth = width - dstX;		}		if (dstHeight < 0) {			dstHeight = height - dstY;		}		if (dstWidth <= 0 || dstHeight <= 0) {			imageComplete(STATICIMAGEDONE);		} else if (intPixels == null && dstModel == ColorModel.getRGBdefault()) {			intPixels = new int[dstWidth * dstHeight];			dstScansize = dstWidth;		}		status |= (ImageObserver.WIDTH | ImageObserver.HEIGHT);	}