您好,登錄后才能下訂單哦!
FrameSize 屏幕分辨率
WinSize DisignReslution
VisibleSize 在WinSize之內,小于或者等于WinSize
屏幕分辨率適配模式:
1.kResolutionExactFit 橫向按橫向比拉伸,縱向按縱向比拉伸
2.kResolutionNoBorder MAC(橫向比,縱向比) 拉伸 ,會裁切
3.kResolutionShowAll MIN(橫向比,縱向比) 拉伸 ,會出現黑邊
4.kResolutionFixedHeight 高度撐滿,縱向裁切 ,配合縮放因子 RH/DH
5.kResolutionFixedWidth 寬度撐滿,縱向裁切 ,配合縮放因子 RW/DW
6.kResolutionUnKnown
enum ResolutionPolicy { // The entire application is visible in the specified area without trying to preserve the original aspect ratio. // Distortion can occur, and the application may appear stretched or compressed. kResolutionExactFit, // The entire application fills the specified area, without distortion but possibly with some cropping, // while maintaining the original aspect ratio of the application. kResolutionNoBorder, // The entire application is visible in the specified area without distortion while maintaining the original // aspect ratio of the application. Borders can appear on two sides of the application. kResolutionShowAll, // The application takes the height of the design resolution size and modifies the width of the internal // canvas so that it fits the aspect ratio of the device // no distortion will occur however you must make sure your application works on different // aspect ratios kResolutionFixedHeight, // The application takes the width of the design resolution size and modifies the height of the internal // canvas so that it fits the aspect ratio of the device // no distortion will occur however you must make sure your application works on different // aspect ratios kResolutionFixedWidth, kResolutionUnKnown, };
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。