Paris Hilton
Paris Hilton

Reputation: 35

know the parameters of the element from his Graphics

how do you know the parameters (eg height and width) of the element, if the constructor is passed only his Graphics?

Upvotes: 0

Views: 37

Answers (1)

gthmb
gthmb

Reputation: 808

you can't inspect the width/height of the Graphics object. You'll to be passed the DisplayObject instance that contains the .graphics instance.

Upvotes: 1

Related Questions