Revision 12197 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/pixelincrease/PixelncreaseDialog.java

View differences:

PixelncreaseDialog.java
211 211
			
212 212
			//Obtenemos valores RGB del Image
213 213
			BufferedImage img = view.getMapControl().getImage();
214
			int value = img.getRGB(pixX, pixY);
214
			int value = 0;
215
			try {
216
				value = img.getRGB(pixX, pixY);
217
			} catch (ArrayIndexOutOfBoundsException e) {
218
				
219
			}
215 220
			red = ((value & 0x00ff0000) >> 16);
216 221
			green = ((value & 0x0000ff00) >> 8);
217 222
			blue = (value & 0x000000ff);

Also available in: Unified diff