know the parameters of the element from his Graphics
how do you know the par开发者_运维问答ameters (eg height and width) of the element, if the constructor is passed only his Graphics?
you can't inspect the width/height of the Graphics
object. You'll to be passed the DisplayObject
instance that contains the .graphics
instance.
精彩评论