pajm
pajm

Reputation: 1838

Pygame image dimensions?

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

Answers (1)

zxt
zxt

Reputation: 2130

Images are loaded as Surface objects, so you should be able to use Surface.get_size().

Upvotes: 6

Related Questions