/[classpath]/classpath/java/awt/image/MemoryImageSource.java
ViewVC logotype

Diff of /classpath/java/awt/image/MemoryImageSource.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mark, Tue Jul 23 17:08:02 2002 UTC revision 1.6 by mark, Sun Jul 13 11:43:37 2003 UTC
# Line 74  public class MemoryImageSource implement Line 74  public class MemoryImageSource implement
74          this.props = props;          this.props = props;
75          int max = (( scansize > width ) ? scansize : width );          int max = (( scansize > width ) ? scansize : width );
76          pixelb = new byte[ max  * height ];          pixelb = new byte[ max  * height ];
77          System.arraycopy( pix, 0, pixelb, 0, max );          System.arraycopy( pix, 0, pixelb, 0, max * height );
78      }      }
79      /**      /**
80         Constructs an ImageProducer from memory         Constructs an ImageProducer from memory
# Line 100  public class MemoryImageSource implement Line 100  public class MemoryImageSource implement
100          this.props = props;          this.props = props;
101          int max = (( scansize > width ) ? scansize : width );          int max = (( scansize > width ) ? scansize : width );
102          pixeli = new int[ max  * height ];          pixeli = new int[ max  * height ];
103          System.arraycopy( pix, 0, pixeli, 0, max );          System.arraycopy( pix, 0, pixeli, 0, max * height );
104      }      }
105      /**      /**
106         Constructs an ImageProducer from memory using the default RGB ColorModel         Constructs an ImageProducer from memory using the default RGB ColorModel
# Line 226  public class MemoryImageSource implement Line 226  public class MemoryImageSource implement
226          if( props != null ) {          if( props != null ) {
227              ic.setProperties( props );              ic.setProperties( props );
228          }          }
229            ic.setDimensions(width, height);
230          if( pixeli != null ) {          if( pixeli != null ) {
231              ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize );              ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize );
232          } else {          } else {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26