Corona的屏幕适配
来源:互联网 发布:实惠猪软件怎么样 编辑:程序博客网 时间:2024/06/05 16:00
display.contentWidth
与display.contentHeight
的值等于config.lua
中的width
与height
content = { width = 320, height = 480, scale = "letterBox", fps = 30, },
The internal coordinate system is also dependent on the content area, with coordinates (0,0) residing in the top-left corner of the content area, not necessarily the top-left corner of the screen.
The content area is defined by the width and height values in config.lua. If you omit or set either of these values to 0, content scaling will not be used.
display.contentScaleX
与display.contentScaleY
:宽与高的缩放比例display.pixelWidth
与display.pixelHeight
:屏幕的真实宽、高display.screenOriginX
与display.screenOriginY
:屏幕的左上角坐标,以缩放后的内容区域的左上角为原点
例子如下:
contentWidth = 320contentHeight = 480actualContentWidth = 320actualContentHeight = 568.88891601562display.screenOriginX = -0display.screenOriginY = -44viewableContentWidth = 320viewableContentHeight = 480pixelWidth = 1080pixelHeight = 1920contentScaleX = 0.29629629850388contentScaleY = 0.29629629850388
0 0
- Corona的屏幕适配
- Corona的工程配置
- Corona SDK的优与劣
- Corona SDK的优与劣
- Facebook : Corona的Reduce延时启动
- corona new button(按钮的使用)
- 屏幕的适配
- 屏幕的适配
- 屏幕的适配
- corona简介-跨平台的手机App开发框架
- 在Corona SDK中使用子目录的方法
- 从付费到免费的跨平台游戏引擎Corona
- Corona API
- spine-corona
- android的屏幕适配
- android的屏幕适配
- Android的屏幕适配
- android屏幕的适配
- Python 爬虫的工具列表
- 华为oj:
- ServiceLoader : JAVA SPI 机制
- JAVA_对象一对一关系 ObjectOneToOneRelationship.java
- [数据库 开发] SQL多表连接查询(详细实例)
- Corona的屏幕适配
- 接受远程接口访问数据
- 史上最易懂的Android jni开发资料--NDK环境搭建
- 开启linux的路由转发功能
- this和super
- wrap_content和实际大小的区别
- 高并发数据处理小记
- Leetcode 318
- JVM最大可支持线程数计算方法