1

Possible Duplicate:
SVG rendering in a PyGame application

Can I load .svg files created by inkscape to python via pygame? And if so, how I can do it?

Community
  • 1
  • 1

1 Answers1

3

No you cannot, PyGame supports following image formats:

  • JPG
  • PNG
  • GIF (non animated)
  • BMP
  • PCX
  • TGA (uncompressed)
  • TIF
  • LBM (and PBM)
  • PBM (and PGM, PPM)
  • XPM

You can however rasterize that SVG using Cairo RSVG library. There is some documentation for that on PyGame's web.

vartec
  • 131,205
  • 36
  • 218
  • 244