Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将整个场景内容打印到相纸上?
我最近找到了几个小时的解决方案,看看一个让你在 AS3 中打印场景内容的函数,只需调用它:
private function printScreen():void { var printJob:PrintJob = new PrintJob(); if ( !printJob.start() ) return; printJob.addPage(Sprite(root)); printJob.send() printJob = null; }
只需从鼠标/键盘事件中调用它就可以了。