Creating planarImage from bufferedimage
I am having trouble with creating planarimage from a bufferedimage.
This is the code I did:
PlanarImage planarimage = PlanarImage.wrapRenderedImage(bi);
I tried some filters like bandmerge to create grayscale image but nothings is changed on the planarimage. What I need to do get it working is saving the planar image into file then recreate the planar image from that file with JAI.create method.
Can anyone please help on creating planarimage from bufferedimage