:mod:`pygame2.sdl.image` -- SDL image I/O wrapper module
========================================================

SDL image I/O wrapper module

.. module:: pygame2.sdl.image
   :synopsis: SDL image I/O wrapper module

Module Functions
----------------
.. function:: load_bmp (file) -> Surface

  Loads a BMP file and creates a :class:`pygame2.sdl.video.Surface` from it.

  Loads a BMP file and creates a :class:`pygame2.sdl.video.Surface` from it.
  The *file* argument can be either a file object or the filename.

  .. note::

          The file object *must* support binary read and write
          access. This is especially important for Python 3.x users.




.. function:: save_bmp (surface, file) -> None

  Saves a surface to a bitmap file.

  Saves a :class:`pygame2.sdl.video.Surface` to the specified file, where
  *file* can be a filename or file object.

  .. note::

          The file object *must* support binary read and write
          access. This is especially important for Python 3.x users.




