quick 截屏 captureScreen

来源:互联网 发布:淘宝前期没生意怎么办 编辑:程序博客网 时间:2024/06/17 14:38
   display.captureScreen(function(bSuc, filePath)--bSuc 标识截屏是否成功       if bSuc then --如果bSuc == true 将图片sprite添加到屏幕中央并缩放        print("aaa" .. filePath)        display.newSprite(filePath)            :center()            :scale(0.5)            :addTo(self)            :zorder(101)       end    end,"aa.png")
截取屏幕保存到filePath并显示在中央scale 0.5
0 0