日期:2014-05-20  浏览次数:20645 次

j2me处理图片双缓冲,图片闪

??String strPath = "/comicsplash.png";
??
??try {
???memoryImage=Image.createImage(strPath);
??} catch (IOException e) {
???// TODO Auto-generated catch block
???e.printStackTrace();
??}
??
?? memoryImage = Image.createImage(320, 480);
?? //画笔设置
?? memoryGraphics = memoryImage.getGraphics();
?? memoryGraphics.setColor(0, 255, 255);
???????? //画出缓冲
?? memoryGraphics.drawImage(memoryImage,0,0,0);