示例#1
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 * pixelStride + bandOffsets[b]));
        }
示例#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]);
        }