hi, as i have use the gif encoder and made a gif image out according to the codes below. Once the user select the save command, it will generetate a byte[], with this, how am i able to save the byte[] into a image in the phone memory?
Code:public void commandAction(Command c, Displayable d) { if(c==bkCmd) { mainCanvas mainCanvas= new mainCanvas( midlet, display , background,text, x, y, fontSize, fontColour, mustRepaintText,addChoice, characterOne, characterTwo, fontStyle, backgroundName); display.setCurrent(mainCanvas); }else if(c==saveCmd) { frameImage1= createImageMethod(1); frameImage2=createImageMethod(2); frameImage3=createImageMethod(3); byte[] gifImage= saveMethod(frameImage1,frameImage2,frameImage3); System.out.println(gifImage.toString()+"GIF IMAGE DATA"); testing= Image.createImage(gifImage,0,gifImage.length); repaint(); } }

Reply With Quote




