Reputation: 1838
How would I find the dimensions of an image I loaded into PyGame? I haven't found this in the sprite or surface classes. Thanks.
Upvotes: 2
Views: 5326
Reputation: 2130
Images are loaded as Surface objects, so you should be able to use Surface.get_size().
Upvotes: 6