Return to Snippet

Revision: 8416
at September 18, 2008 22:28 by lzyy


Initial Code
var img = new Logo(0,0);
trace(img.height);//40;
trace(img.width);//100

Initial URL

                                

Initial Description
如果在库里做了图片的链接,那么实例化后,可以给任意的宽和高参数,都会得到图片原始的宽和高

Initial Title
get BitmapData's height & width

Initial Tags

                                

Initial Language
ActionScript 3