
-----------------------------------
MB2003
Mon Feb 18, 2008 5:09 pm

Saving Images in Pygame
-----------------------------------
When I try to save my surface using
image.save( Surface, filename )

i get an AttributeError because it says that "pygame.Surface() has no attribute 'save' "
HELP!!

-----------------------------------
McKenzie
Mon Feb 18, 2008 7:27 pm

Re: Saving Images in Pygame
-----------------------------------
image is a module, it has a save function inside it. If your code looks like:
image.save(screen, filename)

and it complains about attribute error then you probably overwrote the image module with a surface. That would look like:
image = image.load("bunnies.bmp")

the image module did the loading, but then you replaced the image module with a surface. The answer, change what you call your image.
