Seite 1 von 1

Bild speichern

Verfasst: Samstag 17. April 2010, 09:56
von blob
Wie kann ich im Pygame Fenster ein Bild speichern, z.B Kreise, usw. .

Verfasst: Montag 19. April 2010, 08:06
von C4S3
Pygame DOCS hat geschrieben:pygame.image.save

save an image to disk
pygame.image.save(Surface, filename): return None

This will save your Surface as either a BMP, TGA, PNG, or JPEG image. If the filename extension is unrecognized it will default to TGA. Both TGA, and BMP file formats create uncompressed files.

PNG, JPEG saving new in pygame 1.8.