最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
flex如何实现横向打印
时间:2022-07-02 17:00:34 编辑:袖梨 来源:一聚教程网
1. var thismc:Sprite=new Sprite();
2. thismc.width=stage.stageWidth;
3. thismc.height=stage.stageHeight;
4. thismc.x=0;
5. thismc.y=0;
6.
7. thismc.addChild(this.root);
8.
9. thismc.rotation = 90;
10. try{
11. var pj:PrintJob = new PrintJob(); //新建一个打印;
12. pj.start(); //弹出打印窗口;
13. thismc.width = pj.pageWidth; //先让对象适应纸张的宽度;
14. thismc.scaleY = thismc.scaleX; //按比例调节高度;
15. pj.addPage(thismc); //添加打印页;
16. pj.send(); //打印;
17. }catch (err:Error) {}
18. thismc.rotation = 0; //打印完毕,恢复
相关文章
- 物华弥新银香囊有什么技能 09-16
- 下一站江湖2从冬散怎么获取 09-16
- 永劫无间摸金模式钥匙怎么获得-摸金模式钥匙获取方法 09-16
- 无主之地4支线任务免费接活怎么做 支线任务免费接活图文攻略 09-16
- 无主之地4支线勤务者得奖赏怎么做 支线勤务者得奖赏图文攻略 09-16
- 无主之地4迷你地图在哪 迷你地图介绍 09-16