title: How can i save png images in sdl?
body: <p>ok so i want to save images in sdl.<br>
  i only know how to save stuff in .txt files.<br>
  theoreticlly i could take all the bits of the surface and save them in the .txt file and later load all those bits into a surface manually.<br>
  but i don't want to do that because a surface in sdl has to go threw some certain processes witch i don't really know what they do.<br>
  like every surface has to go through the SDL_DisplayFormat(SDL_Surface *) function.<br>
  and if i load functions threw .txt i won't be able to do that.<br>
  and there is probablly a simple function to do this so i want to take the easy way.<br>
  so where can i get a function that saves a surface to a png file(preferred SDL function)</p>