摘要: ndroid游戏开发或者应用,使背景位图自适应手机分辨率的方法(转)//得到图片资源dstbmp=BitmapFactory.decodeResource(this.getResources(),R.drawable.bg8);//获取系统分辨率Displaydisplay=((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();Matrixmatrix=newMatrix();//使用matri控制图形变换floatw=((float)display.getWidth()/dstbmp.getWidth()) 阅读全文
posted @ 2013-04-26 18:21 Wsf5918 阅读(208) 评论(0) 推荐(0) 编辑