NAME
====
  vg_bitmap_rotate() - rotate a bitmap


SYNOPSIS
========
  bitmap * vg_bitmap_rotate(const bitmap * sbmp, int degr)


DESCRIPTION
===========
  The passed bitmap sbmp (or window if NULL) is rotated
  at degr degrees (-360 to 360).

  Then a static bitmap is returned, leaving the passed bitmap untouched.
  If you want to use this returned static bitmap further, you have to copy it
  with vg_bitmap_duplicate(),
  because it will be overwritten at the next call to vg_bitmap_rotate().
  This is another behaviour than vg_sprite_rotate() shows, which rotates
  the passed sprite itself.


RETURN VALUE
============
  If it succeeds, a static rotated bitmap is returned.
  If an error occurs, NULL is returned, an error message is printed to stderr.


SEE ALSO
========
  Index
  Understanding bitmaps
  vg_bitmap_createnew()
  vg_bitmap_createfromfile()
  vg_bitmap_createfromtext()
  vg_bitmap_duplicate()
  vg_bitmap_width()
  vg_bitmap_height()
  vg_bitmap_getpixel()
  vg_bitmap_clear()
  vg_bitmap_copyto()
  vg_bitmap_save()
  vg_bitmap_zoom()
  vg_bitmap_mirror()
  vg_bitmap_overlap()
  vg_bitmap_free()