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