当前位置: 代码迷 >> J2ME >> j2me处置图片双缓冲,图片闪
  详细解决方案

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

热度:8877   发布时间:2013-02-25 21:31:38.0
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);