They code you posted doesn't grab one pixel, it grabs one fourth of the width and all of the height (unless the image is 4 by 1 in which case that would evaluate to one pixel). And 1a4cfaaa is a perfectly valid value for an RGB pixel (mostly transparent blueish green with a hint of red). The way you are then trying to create an image from the pixels you grab is wrong though:
1
| volcado.createRGBImage(argb,superficie.getWidth()/4,superficie.getHeight (),true); |
will either through a NullPointerException if you didn't initialize volcado before, or create an image and just "throw it away" since you're not assigning the returned image to anything. It should probably be something like:
1
| volcado = Image.createRGBImage(argb,superficie.getWidth()/4,superficie.getHeight (),true); |
shmoove