WBMPMaster wbmpMaster = new WBMPMaster();
int height = image.getHeight();
int width = image.getWidth();
int[] pixels = wbmpMaster.grabPixels(image);
pixels = WBMPMaster.processPixels(
1, pixels, width, height, 128, Color.white, false);
WBMPMaster.encodePixels(out, pixels, width, height);
}