File: sdl2ext_surface.rst

package info (click to toggle)
pysdl2 0.9.7%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,824 kB
  • sloc: python: 17,244; makefile: 195; sh: 32
file content (14 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.. currentmodule:: sdl2.ext

Software Surface manipulation
=============================

.. function:: subsurface(surface : SDL_Surface, area : (int, int, int, int)) -> SDL_Surface

   Creates a surface from a part of another surface. The two surfaces share
   pixel data.
   
   .. note::
      
      The newly created surface *must not* be used after its parent has been
      freed!