jdk/src/share/classes/java/awt/image/PixelInterleavedSampleModel.java
changeset 18246 5d1d50a81438
parent 5506 202f599c92aa
child 21278 ef8a3a2a72f2
equal deleted inserted replaced
18245:7f4796a3f93a 18246:5d1d50a81438
    83                                        int w, int h,
    83                                        int w, int h,
    84                                        int pixelStride,
    84                                        int pixelStride,
    85                                        int scanlineStride,
    85                                        int scanlineStride,
    86                                        int bandOffsets[]) {
    86                                        int bandOffsets[]) {
    87         super(dataType, w, h, pixelStride, scanlineStride, bandOffsets);
    87         super(dataType, w, h, pixelStride, scanlineStride, bandOffsets);
    88         int minBandOff=bandOffsets[0];
    88         int minBandOff=this.bandOffsets[0];
    89         int maxBandOff=bandOffsets[0];
    89         int maxBandOff=this.bandOffsets[0];
    90         for (int i=1; i<bandOffsets.length; i++) {
    90         for (int i=1; i<this.bandOffsets.length; i++) {
    91             minBandOff = Math.min(minBandOff,bandOffsets[i]);
    91             minBandOff = Math.min(minBandOff,this.bandOffsets[i]);
    92             maxBandOff = Math.max(maxBandOff,bandOffsets[i]);
    92             maxBandOff = Math.max(maxBandOff,this.bandOffsets[i]);
    93         }
    93         }
    94         maxBandOff -= minBandOff;
    94         maxBandOff -= minBandOff;
    95         if (maxBandOff > scanlineStride) {
    95         if (maxBandOff > scanlineStride) {
    96             throw new IllegalArgumentException("Offsets between bands must be"+
    96             throw new IllegalArgumentException("Offsets between bands must be"+
    97                                                " less than the scanline "+
    97                                                " less than the scanline "+