- 浏览: 5819756 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (890)
- WindowsPhone (0)
- android (88)
- android快速迭代 (17)
- android基础 (34)
- android进阶 (172)
- android高级 (0)
- android拾遗 (85)
- android动画&效果 (68)
- Material Design (13)
- LUA (5)
- j2me (32)
- jQuery (39)
- spring (26)
- hibernate (20)
- struts (26)
- tomcat (9)
- javascript+css+html (62)
- jsp+servlet+javabean (14)
- java (37)
- velocity+FCKeditor (13)
- linux+批处理 (9)
- mysql (19)
- MyEclipse (9)
- ajax (7)
- wap (8)
- j2ee+apache (24)
- 其他 (13)
- phonegap (35)
最新评论
-
Memories_NC:
本地lua脚本终于执行成功了,虽然不是通过redis
java中调用lua脚本语言1 -
ZHOU452840622:
大神://处理返回的接收状态 这个好像没有监听到 遇 ...
android 发送短信的两种方式 -
PXY:
拦截部分地址,怎么写的for(int i=0;i<lis ...
判断是否登录的拦截器SessionFilter -
maotou1988:
Android控件之带清空按钮(功能)的AutoComplet ...
自定义AutoCompleteTextView -
yangmaolinpl:
希望有表例子更好。。。,不过也看明白了。
浅谈onInterceptTouchEvent、onTouchEvent与onTouch
# import javax.microedition.lcdui.*; # import javax.microedition.lcdui.game.Sprite; # # # public class ImageUtil # { # public static final int TURN_LEFT = 1; # public static final int TURN_RIGHT = 2; # # # /* # *获取图片RGB数据,并返回大小为width*height大小的一维数组 # */ # public int[] getPixels(Image src) # { # int w = src.getWidth(); # int h = src.getHeight(); # int[] pixels = new int[w * h]; # src.getRGB(pixels, 0, w, 0, 0, w, h); # return pixels; # } # # # /* # *将pixels[]里的数据,生成一张图片,图片宽为w,高为h # */ # public Image drawPixels(int[] pixels, int w, int h) # { # Image image = Image.createRGBImage(pixels, w, h, true); # pixels = null; # return image; # } # # # /* # *调整图片大小 # *destW 调整后的宽,destH调整后的高 # */ # public Image effect_resizeImage(Image src, int destW, int destH) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # # # int[] destPixels = new int[destW * destH]; # # int[] srcPixels = getPixels(src); # # for (int destY = 0; destY < destH; ++destY) # { # for (int destX = 0; destX < destW; ++destX) # { # int srcX = (destX * srcW) / destW; # int srcY = (destY * srcH) / destH; # destPixels[destX + destY * destW] = srcPixels[srcX + srcY # * srcW]; # } # } # # # return drawPixels(destPixels, destW, destH); # } # # # /* # * 调整图片亮度与对比度。 contrast 对比度,light 亮度 # */ # public Image effect_light_contrast(Image src,double contrast,int light) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int r = 0; # int g = 0; # int b = 0; # int a = 0; # int argb; # //公式y =ax+b a为对比度,b为亮度 # //int para_b = light - 127 * (light - 1); # for (int i = 0; i < srcH; i++) # { # for(int ii=0;ii<srcW;ii++) # { # argb = srcPixels[i*srcW+ii]; # a = ((argb & 0xff000000) >> 24); // alpha channel # r =((argb & 0x00ff0000) >> 16); // red channel # g =((argb & 0x0000ff00) >> 8); // green channel # b =(argb & 0x000000ff); // blue channel # r =(int)( r*contrast+light); # g =(int)( g*contrast+light); # b =(int)( b*contrast+light); # # /*r =(int)((r -127 ) * contrast + 127+para_b); # g =(int)((g -127 ) * contrast + 127+para_b); # b =(int)((b -127 ) * contrast + 127+para_b);*/ # if(r>255) # r = 255; # else if(r<0) r=0; # if(g>255) # g = 255; # else if(g<0) g=0; # if(b>255) # b = 255; # else if(b<0) b=0; # srcPixels[i*srcW+ii] = ((a << 24) | (r << 16) | (g << 8) | b); # # } # } # return drawPixels(srcPixels, srcW, srcH); # } # # # /* # * 图片镜像特效 # */ # public Image effect_mirror(Image src) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int len; # int temp; # for (int i = 0; i < srcH; i++) # { # len = (i+1)*srcW; # for(int ii=0;ii<srcW/2;ii++) # { # temp=srcPixels[i*srcW+ii]; # srcPixels[i*srcW+ii]=srcPixels[len-1-ii]; # srcPixels[len-1-ii]=temp; # } # } # return drawPixels(srcPixels, srcW, srcH); # } # # /* # * 图片剪切,cut_xpos,cut_ypos 切割框的起始位置坐标,cut_width,cut_height 切割框的宽与高 # */ # public Image effect_cut(Image src,int cut_xpos,int cut_ypos,int cut_width,int cut_height) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int[] desPixels = new int[cut_width*cut_height]; # int argb; # int num = 0; # for (int i = 0; i < srcH; i++) # { # if(i >= cut_ypos&&i<cut_height+cut_ypos) # { # for(int ii=0;ii<srcW;ii++) # { # if(ii>=cut_xpos && ii<cut_width+cut_xpos) # { # desPixels[num] = srcPixels[i*srcW+ii]; # num++; # # } # } # } # } # return drawPixels(desPixels, cut_width, cut_height); # } # # # /* # * 图片叠加,将src和image合成一张图片,x_pos,y_pos一般为0,0,也可以为自定义值 # */ # public Image effect_image_add_image(Image src,Image image,int x_pos,int y_pos) # { # Image temp = Image.createImage(src.getWidth(),src.getHeight()); # Graphics g = temp.getGraphics(); # //g.drawImage(src,x_pos,y_pos,Graphics.LEFT|Graphics.TOP); # //g.drawImage(image,x_pos,y_pos,Graphics.LEFT|Graphics.TOP);*/ # int alpha = 168; # int []srcRgbdata = new int[src.getWidth()*src.getHeight()]; # int []desRgbdata = new int[image.getWidth()*image.getHeight()]; # src.getRGB(srcRgbdata,0,src.getWidth(),0,0,src.getWidth(),src.getHeight()); # image.getRGB(desRgbdata,0,image.getWidth(),0,0,image.getWidth(),image.getHeight()); # g.drawRGB(getTransImg(alpha,srcRgbdata,desRgbdata),0,src.getWidth(),0,0,src.getWidth(),src.getHeight(),false); # src=null; # image=null; # return temp; # } # # /* # * 图片上添加字符 # */ # public Image effect_image_add_str(Image src,String str,int x_pos,int y_pos) # { # Image temp = Image.createImage(src.getWidth(),src.getHeight()); # Graphics g = temp.getGraphics(); # g.drawImage(src,0,0,Graphics.LEFT|Graphics.TOP); # g.setColor(0x000000); # g.drawString(str,x_pos,y_pos,Graphics.LEFT|Graphics.TOP); # return temp; # } # # /* # * 图片特效负片 # */ # public Image effect_negative(Image src) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int r = 0; # int g = 0; # int b = 0; # int a = 0; # int argb; # for (int i = 0; i < srcH; i++) # { # for(int ii=0;ii<srcW;ii++) # { # argb = srcPixels[i*srcW+ii]; # a = ((argb & 0xff000000) >> 24); // alpha channel # r =255-((argb & 0x00ff0000) >> 16); // red channel # g =255-((argb & 0x0000ff00) >> 8); // green channel # b =255-(argb & 0x000000ff); // blue channel # srcPixels[i*srcW+ii] = ((a << 24) | (r << 16) | (g << 8) | b); # } # } # return drawPixels(srcPixels, srcW, srcH); # # # } # # /* # * 图片特效黑白 # */ # public Image effect_black_white(Image src) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int r = 0; # int g = 0; # int b = 0; # int a = 0; # int argb; # int temp; # # for (int i = 0; i < srcH; i++) # { # for(int ii=0;ii<srcW;ii++) # { # argb = srcPixels[i*srcW+ii]; # a = ((argb & 0xff000000) >> 24); // alpha channel # r = ((argb & 0x00ff0000) >> 16); // red channel # g = ((argb & 0x0000ff00) >> 8); // green channel # b = (argb & 0x000000ff); // blue channel # temp = (int)(.299*(double)r+.587*(double)g+.114*(double)b); # r = temp; # g = temp; # b = temp; # srcPixels[i*srcW+ii] = ((a << 24) | (r << 16) | (g << 8) | b); # } # } # return drawPixels(srcPixels, srcW, srcH); # # # } # # /* # * 图片特效粉笔画 # */ # public Image effect_crayon(Image src) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int r = 0; # int g = 0; # int b = 0; # int a = 0; # int argb; # int r1 = 0; # int g1 = 0; # int b1 = 0; # int a1 = 0; # int r2 = 0; # int g2 = 0; # int b2 = 0; # int a2 = 0; # # for (int i = 0; i < srcH; i++) # { # for(int ii=0;ii<srcW;ii++) # { # argb = srcPixels[i*srcW+ii]; # a = ((argb & 0xff000000) >> 24); // alpha channel # r = ((argb & 0x00ff0000) >> 16); // red channel # g = ((argb & 0x0000ff00) >> 8); // green channel # b = (argb & 0x000000ff); // blue channel # if(i+1 == srcH) # { # r1= 0; # g1= 0; # b1=0; # } # else # { # argb = srcPixels[(i+1)*srcW+ii]; # //a1 = ((argb & 0xff000000) >> 24); // alpha channel # r1 = ((argb & 0x00ff0000) >> 16); // red channel # g1 = ((argb & 0x0000ff00) >> 8); // green channel # b1 = (argb & 0x000000ff); // blue channel # } # if(ii+1 == srcW){ # r2= 0; # g2= 0; # b2=0; # } # else # { # argb = srcPixels[i*srcW+ii+1]; # r2 = ((argb & 0x00ff0000) >> 16); // red channel # g2 = ((argb & 0x0000ff00) >> 8); // green channel # b2 = (argb & 0x000000ff); // blue channel # } # // rr1=(r1-r2)^2 rr2=(r1-r3)^2 # r = (int)Math.sqrt((double)(2*(r-r1)*(r-r1)+(r-r2)*(r-r2))); # g = (int)Math.sqrt((double)(2*(g-g1)*(g-g1)+(g-g2)*(g-g2))); # b = (int)Math.sqrt((double)(2*(b-b1)*(b-b1)+(b-b2)*(b-b2))); # r =255-r; // red channel # g =255-g; // green channel # b =255-b; // blue channel # srcPixels[i*srcW+ii] = ((a << 24) | (r << 16) | (g << 8) | b); # } # } # return drawPixels(srcPixels, srcW, srcH); # } # # /* # * 图片特效蒙版 # */ # public Image effect_hoodwink(Image src) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int r = 0; # int g = 0; # int b = 0; # int a = 0; # int argb; # # # for (int i = 0; i < srcH; i++) # { # for(int ii=0;ii<srcW;ii++) # { # argb = srcPixels[i*srcW+ii]; # a = ((argb & 0xff000000) >> 24); // alpha channel # r = ((argb & 0x00ff0000) >> 16); // red channel # g = ((argb & 0x0000ff00) >> 8); // green channel # b = (argb & 0x000000ff); // blue channel # r = (int)(.299*(double)r); # g = (int)(.587*(double)g); # b = (int)(.114*(double)b); # srcPixels[i*srcW+ii] = ((a << 24) | (r << 16) | (g << 8) | b); # } # } # return drawPixels(srcPixels, srcW, srcH); # # # } # # private int[] getTransImg(int alpha,int[] srcRgbdata,int[] desRgbdata) # { # int [] tempRgbData = new int[desRgbdata.length]; # # int sr ; # int sg ; # int sb ; # int dr ; # int dg ; # int db ; # int tr ; # int tg ; # int tb ; # for(int i=0;i<desRgbdata.length;i++) # { # sr = (srcRgbdata[i]&0xff0000)>>16; # sg = (srcRgbdata[i]&0xff00)>>8; # sb = srcRgbdata[i]&0xff; # dr = (desRgbdata[i]&0xff0000)>>16; # dg = (desRgbdata[i]&0xff00)>>8; # db = desRgbdata[i]&0xff; # tr = (sr*alpha + dr*(255-alpha))/255; # tg = (sg*alpha + dg*(255-alpha))/255; # tb = (sb*alpha + db*(255-alpha))/255; # tempRgbData[i] = (tr<<16)|(tg<<8)|tb; # } # return tempRgbData; # } # # /* # * 图片特旋转 # */ # public Image effect_rotate(Image src,int direction) # { # Sprite sprite = new Sprite(src); # switch(direction) # { # case 1: # sprite.setTransform(sprite.TRANS_ROT270); # break; # case 2: # sprite.setTransform(sprite.TRANS_ROT90); # break; # } # # Image temp = Image.createImage(src.getHeight(),src.getWidth()); # Graphics g = temp.getGraphics(); # sprite.setPosition(0,0); # sprite.paint(g); # return temp; # } # # # # # /* # * 图片特霓虹灯 # */ # public Image effect_neonLight(Image src) # { # int srcW = src.getWidth(); # int srcH = src.getHeight(); # int[] srcPixels = getPixels(src); # int r = 0; # int g = 0; # int b = 0; # int a = 0; # int argb; # int r1 = 0; # int g1 = 0; # int b1 = 0; # int a1 = 0; # int r2 = 0; # int g2 = 0; # int b2 = 0; # int a2 = 0; # # for (int i = 0; i < srcH; i++) # { # for(int ii=0;ii<srcW;ii++) # { # argb = srcPixels[i*srcW+ii]; # a = ((argb & 0xff000000) >> 24); // alpha channel # r = ((argb & 0x00ff0000) >> 16); // red channel # g = ((argb & 0x0000ff00) >> 8); // green channel # b = (argb & 0x000000ff); // blue channel # if(i+1 == srcH) # { # r1= 0; # g1= 0; # b1=0; # } # else # { # argb = srcPixels[(i+1)*srcW+ii]; # //a1 = ((argb & 0xff000000) >> 24); // alpha channel # r1 = ((argb & 0x00ff0000) >> 16); // red channel # g1 = ((argb & 0x0000ff00) >> 8); // green channel # b1 = (argb & 0x000000ff); // blue channel # } # if(ii+1 == srcW){ # r2= 0; # g2= 0; # b2=0; # } # else # { # argb = srcPixels[i*srcW+ii+1]; # r2 = ((argb & 0x00ff0000) >> 16); // red channel # g2 = ((argb & 0x0000ff00) >> 8); // green channel # b2 = (argb & 0x000000ff); // blue channel # } # // rr1=(r1-r2)^2 rr2=(r1-r3)^2 # r = (int)Math.sqrt((double)(2*(r-r1)*(r-r1)+(r-r2)*(r-r2))); # g = (int)Math.sqrt((double)(2*(g-g1)*(g-g1)+(g-g2)*(g-g2))); # b = (int)Math.sqrt((double)(2*(b-b1)*(b-b1)+(b-b2)*(b-b2))); # srcPixels[i*srcW+ii] = ((a << 24) | (r << 16) | (g << 8) | b); # } # } # return drawPixels(srcPixels, srcW, srcH); # } # # }
图片的透明处理 其实和第一个渐变效果差不多 只不多这个函数中多了一个透明度参数 使用起来更加方便
1. /** 2. * 3. * @param img 4. * 原始图片 5. * @param transparent 6. * 透明度 0-255之间 7. * @return 处理透明度后的图片 8. */ 9. public static Image effect_transparent(Image img, int transparent) { 10. if (transparent < 0 || transparent > 255) 11. return img; 12. 13. int srcW = img.getWidth(); 14. int srcH = img.getHeight(); 15. int[] srcPixels = getPixels(img); //函数功能 讲图片数据存入指定数组 16. 17. for (int i = 0; i < srcPixels.length; i++) { 18. int a = srcPixels[i] >> 24; 19. srcPixels[i] = (transparent << 24) | (srcPixels[i] & 0x00ffffff); 20. 21. } 22. return drawPixels(srcPixels, srcW, srcH); //将数组转化为图片 23. }
任意角度翻转函数
1. /** 2. *@param imgSource 源图像 3. *@param cx 旋转点相对于源图像坐上角横坐标 4. *@param cy 旋转点相对于源图像坐上角纵坐标 5. *@param theta 图像逆时针旋转的角度 6. *@return 旋转后的图像 7. */ 8. public Image rotate(Image imgSource, int cx, int cy, double theta) 9. { 10. if (Math.abs(theta % 360) < 1) 11. return imgSource; //角度很小时直接返回 12. 13. int w1 = imgSource.getWidth(); //原始图像的高度和宽度 14. 15. int h1 = imgSource.getHeight(); 16. 17. int[] srcMap = new int[w1 * h1]; 18. 19. imgSource.getRGB(srcMap, 0, w1, 0, 0, w1, h1); //获取原始图像的像素信息 20. 21. int dx = cx > w1 / 2 ? cx : w1 - cx; //计算旋转半径 22. 23. int dy = cy > h1 / 2 ? cy : h1 - cy; 24. 25. double dr = Math.sqrt(dx * dx + dy * dy); 26. 27. int wh2 = (int) (2 * dr + 1); //旋转后新图像为正方形,其边长+1是为了防止数组越界 28. 29. int[] destMap = new int[wh2 * wh2]; //存放新图像象素的数组 30. 31. double destX, destY; 32. 33. double radian = theta * Math.PI / 180; //计算角度计算对应的弧度值 34. 35. for (int i = 0; i < w1; i++) { 36. for (int j = 0; j < h1; j++) { 37. if (srcMap[j * w1 + i] >> 24 != 0) { //对非透明点才进行处理 38. // 得到当前点经旋转后相对于新图像左上角的坐标 39. destX = dr + (i - cx) * Math.cos(radian) + (j - cy) 40. * Math.sin(radian); 41. destY = dr + (j - cy) * Math.cos(radian) - (i - cx) 42. * Math.sin(radian); 43. //从源图像中往新图像中填充像素 44. destMap[(int) destY * wh2 + (int) destX] = srcMap[j * w1 45. + i]; 46. } 47. } 48. } 49. return Image.createRGBImage(destMap, wh2, wh2, true); //返回旋转后的图像 50. }
图片的缩放和透明效果
public static final Image zoomImage(Image src){ return zoomImage(src,src.getWidth(),src.getHeight(),true,false); } public static final Image zoomImage(Image src, int desW, int desH, boolean isBackgroundTrans, boolean isTrans) { Image desImg = null; int srcW = src.getWidth(); // source image width int srcH = src.getHeight(); // source image height int[] srcBuf = new int[srcW * srcH]; // source image pixel src.getRGB(srcBuf, 0, srcW, 0, 0, srcW, srcH); // compute interpolation table int[] tabY = new int[desH]; int[] tabX = new int[desW]; int sb = 0; int db = 0; int tems = 0; int temd = 0; int distance = srcH > desH ? srcH : desH; for ( int i = 0 ; i <= distance ; i++) { /* vertical direction */ tabY[db] = sb; tems += srcH; temd += desH; if ( tems > distance) { tems -= distance; sb++; } if ( temd > distance) { temd -= distance; db++; } } sb = 0; db = 0; tems = 0; temd = 0; distance = srcW > desW ? srcW : desW; for ( int i = 0 ; i <= distance ; i++) { /* horizontal direction */ tabX[db] = (short) sb; tems += srcW; temd += desW; if ( tems > distance) { tems -= distance; sb++; } if ( temd > distance) { temd -= distance; db++; } } // set transparence // if(isTrans){ // int a= 100;//set the transparence of pixel 100 // for(int i=0;i<srcBuf.length;i++){ // if(srcBuf[i]==0x00FFFFFF)continue; // srcBuf[i]=(a<<24) | (srcBuf[i] & 0x00FFFFFF);// modify the highest 2 value // } // } // formation enlarge and shorten buffer pixel int[] desBuf = new int[desW * desH]; int dx = 0; int dy = 0; int sy = 0; int oldy = -1; for ( int i = 0 ; i < desH ; i++) { if ( oldy == tabY[i]) { System.arraycopy(desBuf, dy - desW, desBuf, dy, desW); } else { dx = 0; for ( int j = 0 ; j < desW ; j++) { desBuf[dy + dx] = srcBuf[sy + tabX[j]]; dx++; } sy += (tabY[i] - oldy) * srcW; } oldy = tabY[i]; dy += desW; } if(isTrans){ // int a= 100;//set the transparence of pixel 100 for(int i=0;i<desBuf.length;i++){ if(desBuf[i]==0x00FFFFFF)continue; int alpha = ((desBuf[i] & 0xff000000) >>> 24)==0?0:100; desBuf[i]=((alpha+1)<<24) | (desBuf[i] & 0x00FFFFFF);// modify the highest 2 value } } if(isBackgroundTrans){ desImg = Image.createRGBImage(desBuf, desW, desH, true); }else{ desImg = Image.createRGBImage(desBuf, desW, desH, false); } return desImg; }
发表评论
-
3个RPG练习,最后一个是卡马克卷轴
2010-12-11 18:02 2361import javax.microedition.lcd ... -
j2me小练习,教学用
2010-12-07 20:42 1844有用的J2ME功能函数 ... -
自己早期做的一个基于j2me的飞行射击类游戏
2010-12-07 20:23 2130早期的代码,MVC思想 -
自己早期做的一个基于j2me的魔塔
2010-12-07 20:13 2103上面一个不完整,但代码好(MVC),但没抽出类; 下面一个比 ... -
j2me中的A*算法
2010-12-02 14:08 2065import javax.microedition.mid ... -
j2me代理连接返回码总是400的问题
2010-09-21 16:24 2769400是因为错误的语法导致服务器无法理解请求信息。 Con ... -
当显示内容过多时的滚屏类Container.java
2010-09-16 11:32 2169很多时候,由于手机屏幕太小,一下子显示不了那么多内容,这个时候 ... -
j2me读取中文的配置文件
2010-09-14 20:25 2166还可以参考这篇文章: http://gundumw100.it ... -
使用jsr172解析xml
2010-09-14 10:40 1963基类: import java.io.ByteArrayI ... -
面向对象的RMS操作
2010-09-14 10:29 1715将需要保存的数据集中起来形成一个model类,并且要实现序列化 ... -
Java版数独算法实现
2010-09-10 16:32 16360数独的历史: 数独前身为“九宫格”,最早起源于中国。数千 ... -
使用KXML解析xml数据
2010-09-10 13:05 9335最近做项目,服务器传过来的都是Xml格式的数据,需要解析xml ... -
类似小球列表的选择控件(9宫格)
2010-08-27 15:50 1763import javax.microedition.lcd ... -
j2me工具类:TextUtil.java
2010-08-11 21:24 1710import java.util.Vector; i ... -
j2me工具类:Database.java
2010-08-11 21:18 2023/** * <p>Title: & ... -
j2me工具类:ReadFromFile.java
2010-08-11 21:15 4340import java.io.*; import jav ... -
j2me竖向滚动菜单的基本做法
2010-08-11 16:58 2031public class AppCanvas extend ... -
j2me工具类:声音播放类SoundUtil
2010-06-04 23:21 2135用法: 将需要播放的音乐都罗列在name,type数组中,需要 ... -
j2me工具类:PalettedImage调色板类
2010-06-04 22:57 1808该方法网上可以找到,我添加了一个重载函数: public Im ... -
地图编辑器Mappy下载
2010-05-25 22:30 3331简单的手机游戏地图编辑器,共享之。。。 eclipseme下 ...
相关推荐
对于想学习J2ME的开发者,"[J2ME编程].(Manning).J2ME.-.Java.in.small.things.(2002)"这本书是一个很好的起点,它详细介绍了J2ME的基础知识、开发技巧和实际案例,帮助读者掌握J2ME编程技能。 总结,J2ME是Java在...
J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含文档.zip J2ME飞机游戏含...
- **MIDlet**:J2ME应用程序的核心单元,是一个Java类,负责应用程序的生命周期管理。 5. **诺基亚和摩托罗拉设备的特性** - **诺基亚S40和S60平台**:提供了更丰富的功能和更大的内存,支持更复杂的J2ME应用。 ...
这类文件通常由J2ME开发工具生成,以便在设备上正确地初始化和恢复RMS存储。 3. **www.pudn.com.txt**:这个文件可能是从网站www.pudn.com下载资源时一同打包的说明文件或者版权信息。通常,它不会包含与RMS数据库...
基于java的开发源码-J2ME优化压缩PNG文件.zip 基于java的开发源码-J2ME优化压缩PNG文件.zip 基于java的开发源码-J2ME优化压缩PNG文件.zip 基于java的开发源码-J2ME优化压缩PNG文件.zip 基于java的开发源码-J2ME优化...
基于java的开发源码-J2me月光战机游戏源码.zip 基于java的开发源码-J2me月光战机游戏源码.zip 基于java的开发源码-J2me月光战机游戏源码.zip 基于java的开发源码-J2me月光战机游戏源码.zip 基于java的开发源码-J2me...
**Java Micro Edition (J2ME) 知识详解** J2ME,全称为Java 2 Platform, Micro Edition,是Java平台的一个子集,主要用于开发和部署在资源有限的设备上的应用程序,如移动电话、PDA、家用电器和嵌入式系统。这个...
**J2ME(Java 2 Micro Edition)工具篇** J2ME是Java平台的一个子集,主要用于嵌入式设备和移动设备,如手机、PDA等。开发J2ME应用程序时,选择合适的工具至关重要,这些工具能够提升开发效率,简化调试过程,并...
在J2ME(Java 2 Micro Edition)平台上开发无线应用时,接收到SMS(Short Message Service,短信)是一项常见的功能。标题"ReceiveSMS.zip_ReceiveSMS_SMS receive j2me_j2me_j2me sms_www.rec"暗示了这是一个关于...
J2ME的主要目标是为移动电话、PDA、消费类电子产品和汽车信息娱乐系统提供一个统一的软件平台。 #### 二、J2ME的版权与使用条款 根据J2ME开发网提供的信息,J2ME相关的软件受Sony Ericsson Mobile Communications ...
标题中的“j2me呼叫手机号码.rar”表明这是一个与Java ME(J2ME)平台相关的项目,特别是关于通过J2ME应用程序拨打电话的功能。J2ME是Java的一种轻量级版本,用于移动设备和嵌入式系统,如早期的智能手机和平板电脑...
6. **开发工具**:J2ME开发通常使用Sun Microsystems(现Oracle)提供的Java Wireless Toolkit (J2ME WTK)或NetBeans IDE,它们提供了模拟器来测试应用程序在不同设备上的表现。 7. **WML和WAP**:在J2ME中,Web...
JAR(Java Archive)文件是J2ME应用的打包格式,包含类文件和其他资源。jad(Java Application Descriptor)文件描述了应用的基本信息,如MIDlet(J2ME应用的主类)和版本号,用于设备安装和管理。 通过深入研究...
基于java的开发源码-简单模拟的J2ME潜艇大战源代码.zip 基于java的开发源码-简单模拟的J2ME潜艇大战源代码.zip 基于java的开发源码-简单模拟的J2ME潜艇大战源代码.zip 基于java的开发源码-简单模拟的J2ME潜艇大战源...
基于java的开发源码-毕业设计一款J2me飞行射击游戏.zip
通常,J2ME项目的源码文件会包括.java文件,这些文件包含了游戏的各个类和方法,例如主类、游戏循环、游戏对象类、图像资源管理类等。 【详细知识点】 1. **Java基础**:掌握基本的Java语法,包括变量、数据类型、...
基于java的开发源码-蜀山剑侠传游戏J2ME手机版源代码.zip 基于java的开发源码-蜀山剑侠传游戏J2ME手机版源代码.zip 基于java的开发源码-蜀山剑侠传游戏J2ME手机版源代码.zip 基于java的开发源码-蜀山剑侠传游戏J2ME...
在提供的压缩包文件"跟我学制作Pak文件j2me.rar"中,包含了两个文件:"www.pudn.com.txt"和"gmatrixProject"。"www.pudn.com.txt"可能是一个链接或说明文档,提供关于Pak文件制作的更多细节或参考资料。而...
**J2ME无线工具包2.x (WTK2.x)** Java 2 Micro Edition (J2ME) 是Java平台的一个子集,专为资源有限的移动设备和嵌入式系统设计,如手机、智能手表和家用电器等。J2ME无线工具包(J2ME Wireless Toolkit,简称WTK)...
**Java 2 Micro Edition (J2ME) API详解** J2ME,全称为Java 2 Micro Edition,是Java平台的一个子集,专为资源有限的移动设备和嵌入式系统设计。它提供了一套丰富的API,使得开发者可以构建功能丰富的应用程序,...