Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int width = 50, height = 50;
- Image image = Image.createImage(width,height);
- int[] rgbArr = new int[width * height];
- image.getRGB(rgbArr, 0, width, 0, 0, width, height);
- for (int i = 0; i < rgbArr.length; i++) {
- if(rgbArr[i] == 0xFFFFFFFF){
- rgbArr[i] = 0x00000000;
- }
- }
- Image transImage = Image.createRGBImage(rgbArr, width, height, true);
Add Comment
Please, Sign In to add comment