韩梦飞沙  韩亚飞  313134555@qq.com  yue31313  han_meng_fei_sha

绘制bitmap 全屏

  1. Rectf rectF = new RectF(0, 0, w, h);   //w和h分别是屏幕的宽和高,也就是你想让图片显示的宽和高
  2. canvas.drawBitmap(bitmap, null, rectF, null);

安卓获取 屏幕大小

1、WindowManager wm = (WindowManager) getContext()

                    .getSystemService(Context.WINDOW_SERVICE);
 
     int width = wm.getDefaultDisplay().getWidth();
     int height = wm.getDefaultDisplay().getHeight();
 
2、WindowManager wm = this.getWindowManager();
 
     int width = wm.getDefaultDisplay().getWidth();
     int height = wm.getDefaultDisplay().getHeight();

最新文章

  1. 4.3 多线程进阶篇<中>(GCD)
  2. html5表单验证
  3. ZSDR017-客户订货价格和库存
  4. Eclipse 代码提示功能设置。
  5. C# winfrom中的布局 控件Anchor和Dock的区别
  6. 一个.Net程序员:既然选择了编程,只管风雨兼程(转)
  7. cf702B Powers of Two
  8. 计算机中RAM和ROM
  9. iOS7动态调整文字大小
  10. ConcurrentLinkedQueue简介
  11. 重庆3Shape TRIOS都有哪些功能
  12. html语义化标签
  13. 关于redis分布式锁实现原理
  14. C#获取常用的路径
  15. Maven学习第4期---Maven简单使用
  16. modbus 寄存器介绍
  17. Redis学习之路(四)之Redis集群
  18. bzoj 4464 : [Jsoi2013]旅行时的困惑
  19. Linux云服务器下Redis安装与部署以及设置redis后台运行
  20. [转]PLSQL Developer软件使用大全

热门文章

  1. R3—日期处理
  2. Html符号
  3. 数据库-Core Data
  4. 2017ACM暑期多校联合训练 - Team 8 1011 HDU 6143 Killer Names (容斥+排列组合,dp+整数快速幂)
  5. lintcode 40. 用栈实现队列
  6. Ubuntu 下 CodeBlocks 修改用户自定义颜色主题 及 更新CodeBlocks到最新版本
  7. java使用simpleDateFormat格式化日期 时间
  8. caffe Python API 之可视化
  9. VS2015_动态链接库学习
  10. [How to] 使用HBase协处理器---基本概念和regionObserver的简单实现