📄 writableraster.java
字号:
* @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if iArray is too small to hold the input. */ public void setPixel(int x, int y, int iArray[]) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, iArray,dataBuffer); } /** * Sets a pixel in the DataBuffer using a float array of samples for input. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the pixel location. * @param y The Y coordinate of the pixel location. * @param fArray The input samples in a float array. * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if fArray is too small to hold the input. */ public void setPixel(int x, int y, float fArray[]) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, fArray,dataBuffer); } /** * Sets a pixel in the DataBuffer using a double array of samples for input. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the pixel location. * @param y The Y coordinate of the pixel location. * @param dArray The input samples in a double array. * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if dArray is too small to hold the input. */ public void setPixel(int x, int y, double dArray[]) { sampleModel.setPixel(x-sampleModelTranslateX,y-sampleModelTranslateY, dArray,dataBuffer); } /** * Sets all samples for a rectangle of pixels from an int array containing * one sample per array element. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the upper left pixel location. * @param y The Y coordinate of the upper left pixel location. * @param w Width of the pixel rectangle. * @param h Height of the pixel rectangle. * @param iArray The input int pixel array. * * @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if iArray is too small to hold the input. */ public void setPixels(int x, int y, int w, int h, int iArray[]) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,iArray,dataBuffer); } /** * Sets all samples for a rectangle of pixels from a float array containing * one sample per array element. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the upper left pixel location. * @param y The Y coordinate of the upper left pixel location. * @param w Width of the pixel rectangle. * @param h Height of the pixel rectangle. * @param fArray The input float pixel array. * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if fArray is too small to hold the input. */ public void setPixels(int x, int y, int w, int h, float fArray[]) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,fArray,dataBuffer); } /** * Sets all samples for a rectangle of pixels from a double array containing * one sample per array element. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the upper left pixel location. * @param y The Y coordinate of the upper left pixel location. * @param w Width of the pixel rectangle. * @param h Height of the pixel rectangle. * @param dArray The input double pixel array. * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates are not * in bounds, or if dArray is too small to hold the input. */ public void setPixels(int x, int y, int w, int h, double dArray[]) { sampleModel.setPixels(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,dArray,dataBuffer); } /** * Sets a sample in the specified band for the pixel located at (x,y) * in the DataBuffer using an int for input. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the pixel location. * @param y The Y coordinate of the pixel location. * @param b The band to set. * @param s The input sample. * * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds. */ public void setSample(int x, int y, int b, int s) { sampleModel.setSample(x-sampleModelTranslateX, y-sampleModelTranslateY, b, s, dataBuffer); } /** * Sets a sample in the specified band for the pixel located at (x,y) * in the DataBuffer using a float for input. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the pixel location. * @param y The Y coordinate of the pixel location. * @param b The band to set. * @param s The input sample as a float. * * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds. */ public void setSample(int x, int y, int b, float s){ sampleModel.setSample(x-sampleModelTranslateX,y-sampleModelTranslateY, b,s,dataBuffer); } /** * Sets a sample in the specified band for the pixel located at (x,y) * in the DataBuffer using a double for input. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the pixel location. * @param y The Y coordinate of the pixel location. * @param b The band to set. * @param s The input sample as a double. * * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds. */ public void setSample(int x, int y, int b, double s){ sampleModel.setSample(x-sampleModelTranslateX,y-sampleModelTranslateY, b,s,dataBuffer); } /** * Sets the samples in the specified band for the specified rectangle * of pixels from an int array containing one sample per array element. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the upper left pixel location. * @param y The Y coordinate of the upper left pixel location. * @param w Width of the pixel rectangle. * @param h Height of the pixel rectangle. * @param b The band to set. * @param iArray The input int sample array. * * @throws NullPointerException if iArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if iArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, int iArray[]) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,iArray,dataBuffer); } /** * Sets the samples in the specified band for the specified rectangle * of pixels from a float array containing one sample per array element. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the upper left pixel location. * @param y The Y coordinate of the upper left pixel location. * @param w Width of the pixel rectangle. * @param h Height of the pixel rectangle. * @param b The band to set. * @param fArray The input float sample array. * * @throws NullPointerException if fArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if fArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, float fArray[]) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,fArray,dataBuffer); } /** * Sets the samples in the specified band for the specified rectangle * of pixels from a double array containing one sample per array element. * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are * not in bounds. * However, explicit bounds checking is not guaranteed. * @param x The X coordinate of the upper left pixel location. * @param y The Y coordinate of the upper left pixel location. * @param w Width of the pixel rectangle. * @param h Height of the pixel rectangle. * @param b The band to set. * @param dArray The input double sample array. * * @throws NullPointerException if dArray is null. * @throws ArrayIndexOutOfBoundsException if the coordinates or * the band index are not in bounds, or if dArray is too small to * hold the input. */ public void setSamples(int x, int y, int w, int h, int b, double dArray[]) { sampleModel.setSamples(x-sampleModelTranslateX,y-sampleModelTranslateY, w,h,b,dArray,dataBuffer); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -