andreas_d Posted August 25, 2015 Share Posted August 25, 2015 Hi guys, Can someone recommend a good method for getting the dimensions of assets AFTER a mask has been applied? Imagine a scenario in which a mask and a Sprite intersect.var sprite = new PIXI.Sprite( texture ); // width == 200 height == 50sprite.mask = new PIXI.Graphics().beginFill().drawRect(0, 0, 50, 200).endFill() );Is there a way to retrieve the dimensions after the mask has been applied? (ex. width==50 ; height == 50 ) instead of: width == 200 ; height == 200 ThanksAndreas Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.