public override double getSampleDouble(int x, int y, int b, DataBuffer data)
        {
            if (x < 0 || y < 0 || x >= this.width || y >= this.height)
            {
                // awt.63=Coordinates are not in bounds
                throw new java.lang.ArrayIndexOutOfBoundsException("Coordinates are not in bounds"); //$NON-NLS-1$
            }

            return(data.getElemDouble(bankIndices[b], y * scanlineStride +
                                      x * pixelStride + bandOffsets[b]));
        }
Beispiel #2
0
        public override double getSampleDouble(int x, int y, int b, DataBuffer data)
        {
            if (x < 0 || y < 0 || x >= this.width || y >= this.height)
            {
                // awt.63=Coordinates are not in bounds
                throw new java.lang.ArrayIndexOutOfBoundsException("Coordinates are not in bounds"); //$NON-NLS-1$
            }

            return data.getElemDouble(bankIndices[b], y * scanlineStride + x +
                   bandOffsets[b]);
        }