Aug 31

用Flex2实现打印预览 不指定

zpgm , 17:25 , Flex & actionscript , 评论(0) , 引用(0) , 阅读(843) , Via 本站原创 | |
因为Flex2里面没有ImageSnapShot组件,所以需要写一个函数实现ImageSnapShot的功能.

private function getBitmapData( target : UIComponent ) : BitmapData
            {
                var bd : BitmapData = new BitmapData( target.width, target.height );
                var m : Matrix = new Matrix();
                bd.draw( target, m );
                return bd;
            }



完整的源代码:
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]