[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] .png saving



I think he left out a step:

screenshot = pygame.surface.Surface(screen.get_size())
screenshot.blit(screen,[0,0])
pygame.image.save(screenshot,"screenshot.bmp")

On 10/30/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
> On 10/30/07, Kris Schnee <kschnee@xxxxxxxxxx> wrote:
>
> > ## Where "screen" is your display surface:
> > screenshot = pygame.surface.Surface(screen.get_size())
> > pygame.image.save(screenshot,"screenshot.bmp")
> Well, it doesn't crash, which is a step in the right direction, it just
> saves a blank (black) screen with the size of the screen resolution size.
>
> Ian
>