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 |
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 |
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 { |