Saving Images in Pygame
Author |
Message |
MB2003
|
Posted: Mon Feb 18, 2008 5:09 pm Post subject: 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!! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
McKenzie
|
Posted: Mon Feb 18, 2008 7:27 pm Post subject: 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. |
|
|
|
|
|
|
|