Index: java/awt/image/MemoryImageSource.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/image/MemoryImageSource.java,v
retrieving revision 1.5
diff -u -r1.5 MemoryImageSource.java
--- java/awt/image/MemoryImageSource.java	23 Jul 2002 17:08:02 -0000	1.5
+++ java/awt/image/MemoryImageSource.java	11 Jul 2003 07:01:03 -0000
@@ -74,7 +74,7 @@
 	this.props = props;
 	int max = (( scansize > width ) ? scansize : width );
 	pixelb = new byte[ max  * height ];
-	System.arraycopy( pix, 0, pixelb, 0, max );
+	System.arraycopy( pix, 0, pixelb, 0, max * height );
     }
     /**
        Constructs an ImageProducer from memory
@@ -100,7 +100,7 @@
 	this.props = props;
 	int max = (( scansize > width ) ? scansize : width );
 	pixeli = new int[ max  * height ];
-	System.arraycopy( pix, 0, pixeli, 0, max );
+	System.arraycopy( pix, 0, pixeli, 0, max * height );
     }
     /**
        Constructs an ImageProducer from memory using the default RGB ColorModel
@@ -226,6 +226,7 @@
 	if( props != null ) {
 	    ic.setProperties( props );
 	}
+	ic.setDimensions(width, height);
 	if( pixeli != null ) {
 	    ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize );
 	} else {
