int[] p = new int[w*h];
BufferedImage bufferedImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
Graphics2D g = bufferedImage.createGraphics();
PixelGrabber pgObj = new PixelGrabber(img,0,0,w,h,p,0,w);
int newInt = newColor.getRGB() & 0xFFFFFF;
if(pgObj.grabPixels() && ((pgObj.getStatus() & ImageObserver.ALLBITS) != 0)){
for(int cnt = 0; cnt < (w*h);cnt++)
// if ( p[cnt] != 0xFFFFFF ) {
// System.out.println( "I: " + cnt + ": " + ACast.toHex4String(p[cnt]) + " + " + ACast.toHex4String(newInt) );
bufferedImage.setRGB(cnt % w, cnt / w, p[cnt] | newInt);
//} else {