### Navigation

- index
- modules |
- next |
- previous |
- PySDL2 0.9.3 documentation »
- API reference »
- sdl2.ext - Python extensions for SDL2 »

# Software Surface manipulation

`sdl2.ext.``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!

### Navigation

- index
- modules |
- next |
- previous |
- PySDL2 0.9.3 documentation »
- API reference »
- sdl2.ext - Python extensions for SDL2 »