Loading SVG files with python and pygame -


possible duplicate:
svg rendering in pygame application

can load .svg files created inkscape python via pygame? , if so, how can it?

no 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 rasterize svg using cairo rsvg library. there documentation on pygame's web.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -