SFML community forums

Help => Graphics => Topic started by: pauliuc on October 22, 2010, 02:40:44 pm

Title: Get the size of rotated sprite?
Post by: pauliuc on October 22, 2010, 02:40:44 pm
Hi,

is there a way to retrieve the width and height of a rotated sprite? Not the original one.

Thanks.
Title: Get the size of rotated sprite?
Post by: Laurent on October 22, 2010, 03:14:03 pm
You can transform the corners of the sprite to global coordinates (TransformToGlobal) and compute the difference on X and Y.