public override void setSample(int x, int y, int b, double s, 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$
            }

            data.setElemDouble(bankIndices[b], y * scanlineStride +
                               x * pixelStride + bandOffsets[b], s);
        }
Example #2
0
        public override void setSample(int x, int y, int b, double s, 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$
            }

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