总结:biXPelsPermeterbiYPelsPermeter 只给显示器打印机的一个参考值,当需要不同的尺寸打印出来的时候可以用软件缩放图像,理论上可以随便改变这个值尽管不改变具体的像素数据,但会导致有些软件缩放这个图片出现问题。

像素密度:PPI(Pixels Per Inch),一英寸等于2.54cm,一般电脑手机的分辨率是指在电脑手机规格的大小下的长宽的像素数,像素密度才是真正度量屏幕精细程度的标准。计算一般是勾股定理得到对角线的像素数/对角线的长度(inch)得到像素密度。电脑手机显示图片的时候是会根据图片的像素数 / 自己的像素密度 = 图片显示尺寸。所以同一个显示器不同的分辨率设置下显示的图片大小会不一样,电脑上面显示的图片和手机上显示的图片大小会不一样。

biXPelsPermeter Specifies the horizontal print resolution, in pixels per meter, of the target device for the bitmap.

biYPelsPermeter Specifies the vertical print resolution.

Its not very important. You can leave them on 2835 its not going to ruin the image. (72 DPI × 39.3701 inches per meter yields

2834.6472) 一寸等于2.54cm.

Think of it this way: The image bits within the BMP structure define the shape of the image using that much data (that much information describes the image), but that information must then be translated to a target device using a measuring system to indicate its applied resolution in practical use.

For example, if the BMP is 10,000 pixels wide, and 4,000 pixels high, that explains how much raw detail exists within the image bits. However, that image information must then be applied to some target. It uses the relationship to the dpi and its target to derive the applied resolution.

If it were printed at 1000 dpi then it's only going to give you an image with 10" x 4" but one with extremely high detail to the naked eye (more pixels per square inch). By contrast, if it's printed at only 100 dpi, then you'll get an image that's 100" x 40" with low detail (fewer pixels per square inch), but both of them have the same overall number of bits within. You can actually scale an image without scaling any of its internal image data by merely changing the dpi to non-standard values.

Also, using 72 dpi is a throwback to ancient printing techniques (https://en.wikipedia.org/wiki/Twip) which are not really relevant in moving forward (except to maintain compatibility with standards) as modern hardware devices often use other values for their fundamental relationships to image data. For video screens, for example, Macs use 72 dpi as the default. Windows uses 96 dpi. Others are similar. In theory you can set it to whatever you want, but be warned that not all software honors the internal settings and will instead assume a particular size. This can affect the way images are scaled within the app, even though the actual image data within hasn't changed.

要计算显示器的每英寸像素值,首先要确定屏幕的尺寸和分辨率。

以屏幕尺寸为4吋的iPhone 5为例,分辨率为1136x640,像素密度为326PPI。而分辨率为1920x1080的家用21.5寸显示器,像素密度为103PPI。

另外,由于屏幕的尺寸有时并不代表其实际的大小(例如苹果公司生产的21.5寸iMac电脑实际对角线长度为21.465寸[6]),因此单凭尺寸算得的每英寸像素值会有一定的误差。同样的一台显示器,如果分辨率设置的不同,像素点数也不同。分辨率越高,每英寸像素值也越高,图像的大小也越小。

根据屏幕每英寸像素值的不同,Android系统的开发者将平板电脑和手机的屏幕分成四类:[11]

名称 显示等级 每英寸像素值
LDPI 低等像素密度 大约120每英寸像素
MDPI 中等像素密度 大约160每英寸像素
HDPI 高等像素密度 大约180每英寸像素
XHDPI 极高像素密度 大约320每英寸像素

bmp图片中biXPelsPermeter biYPelsPermeter值的含义相关推荐

  1. MySQL外键约束On Delete、On Update各取值的含义

    主键.外键和索引的区别?   主键 外键 索引 定义: 唯一标识一条记录,不能有重复的,不允许为空 表的外键是另一表的主键, 外键可以有重复的, 可以是空值 主索引(由关键字PRIMARY定义的索引) ...

  2. Action 参数的取值及其含义

    Action 参数的取值及其含义 转载于:https://www.cnblogs.com/LoveFishC/archive/2012/08/18/3845726.html

  3. mysql on delete关键字_MySQL外键约束On Delete、On Update各取值的含义

    主键.外键和索引的区别? 主键 外键 索引 定义: 唯一标识一条记录,不能有重复的,不允许为空 表的外键是另一表的主键,外键可以有重复的,可以是空值 主索引(由关键字PRIMARY定义的索引),用于表 ...

  4. Objective-C中变量采用@property的各个属性值的含义

    我们在OC中定义变量,可以自己来定义变量的setter方法来设置变量值,用getter方法来获取变量值.但是当变量数量增多时,还采用手动添加setter/getter方法来操作变量,就会使得程序代码量 ...

  5. C++-win32-GetLastError的返回值的含义

    GetLastError返回的值通过在api函数中调用SetLastError或SetLastErrorEx设置.函数并无必要设置上一次错误信息,所以即使一次GetLastError调用返回的是零值, ...

  6. vertical-align 各个属性值的含义

    vertical-align 各个属性值的含义 注意:vertical-align 属性不继承 有关基线.行内框.行框.内容区.行距的 定义 vertical-align: baseline vert ...

  7. NTSTATUS类型返回值及含义

    NTSTATUS类型返回值及含义 0, "STATUS_WAIT_0" 1, "STATUS_WAIT_1" 2, "STATUS_WAIT_2&qu ...

  8. PMSM弱磁控制的电压、电流极限圆幅值的含义

    逻辑有点乱,其中涉及坐标变换的部分,可以参考另一篇博文永磁同步电机dq坐标系中转矩公式中系数3/2的由来 设计SVPWM算法的,参考SVPWM PMSM的电流.电压约束方程为 Id2 + Iq2 = ...

  9. PyQt(Python+Qt)学习随笔:Qt Designer中部件的快捷菜单策略(contextMenuPolicy)取值及含义

    在Qt Designer中可以设置部件的快捷菜单策略,快捷菜单通过在部件上点击鼠标右键触发. 快捷菜单策略通过枚举类型Qt.ContextMenuPolicy来定义,对应枚举类型取值及含义如下: 通过 ...

最新文章

  1. 准备mysql函数库和PHP文件
  2. csv python 逐行读取_从 Excel 到 Python
  3. Python小练习1:.txt文件常用读写操作
  4. Table边框使用总结
  5. MMO游戏数值框架概述(偏模拟方向)
  6. office2010使用mathtype时,出现未找到MathPage.WLL解决方案--亲测有用
  7. [转载] python| map()函数应用详解
  8. Replace Record with Data Class
  9. 20172315 2018-2019-1《程序设计与数据结构》课程总结
  10. 第一章:开始启程-你的第一行Android代码
  11. Maya批量属性修改链接插件1.1.0更新
  12. visual studio 2015 Enterprise key vs2015密钥
  13. LCD1602温度显示程序设计流程
  14. 林轩田机器学习基石和技法资源
  15. python写出租车计费系统_出租车自动计费器设计(课程设计报告模板)
  16. PM3嗅探数据采集密码自动提取密码工具
  17. leetcode 组合总和IV(Java)
  18. 送 10 本签名书!
  19. 弹幕穿人过,视频换背景,快准狠的图像分割技术了解一下
  20. 关于生成函数和二项式定理

热门文章

  1. 怎么提高网站长尾词排名
  2. vs编译器内存查看和分析
  3. 视频教程-软件项目管理实战-研发管理
  4. 程序员编程艺术:第十章、如何给10^7个数据量的磁盘文件排序
  5. 微机原理-80386(3)
  6. DUMPBIN工具的使用
  7. nonebot2聊天机器人插件7:随机角色卡mist_star
  8. python和Pycharm的安装、使用踩坑-用于提取网页的文字
  9. linux hexo搭建个人博客,gitee和hexo搭建个人博客
  10. Adaboost基本二分类算法