create image from RGB array
I have an RGB array of int
every int is the value in byte of A(1?byte) R(2癰yte) G(3癰yte) B(4癰yte)
How can I create an image from this array?
I try
BufferedImage bi = new BufferedImage(mp4.getWidth(), mp4.getHeight(), BufferedImage.TYPE_4BYTE_ABGR_PRE);
bi.setRGB(0,0,mp4.getWidth(), mp4.getHeight(),dataRGB,0,1);
but it create a blank image.
RGB data is correctly because in J2ME with method
img = Image.createRGBImage(rgb,mp4.getWidth(),mp4.getHeight(),false);
creates image correctly.
Anyone can help me? thanks

