equal
deleted
inserted
replaced
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 "+ |