gpt4 book ai didi

image - 电晕中的 display.newImage() 与 display.newImageRect()

转载 作者:行者123 更新时间:2023-12-01 10:54:34 27 4
gpt4 key购买 nike

display.newImage()display.newImageRect() 有什么区别?

哪个更好用?

最佳答案

display.newImage() 的文档具体提到:

NOTE: display.newImageRect() should be used instead to load images when dynamic content scaling is enabled.

同样,在 display.newImageRect()

dispaly.newImageRect() automatically substitutes higher-resolution assets on higher-resolution devices. The actual image chosen will depend on the current content scale determined by Corona, which is the ratio between the current screen and the base content dimensions defined in config.lua.

Based on this scale, Corona uses the imageSuffix table (also defined in config.lua), which lists the suffixes for the same family of images, to find the best match from the image choices available.

关于image - 电晕中的 display.newImage() 与 display.newImageRect(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16054125/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com