File: pixelaccess.rst

package info (click to toggle)
pysdl2 0.9.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,328 kB
  • sloc: python: 24,685; makefile: 36; sh: 8
file content (14 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
`sdl2.ext.pixelaccess` - Array-like Access to SDL Surface Contents
==================================================================

The :mod:`sdl2.ext.pixelaccess` module offers a number of methods for reading,
modifying, and copying the contents SDL surface objects.

In most cases, the Numpy-based :func:`~sdl2.ext.pixels2d`,
:func:`~sdl2.ext.pixels3d`, and :func:`~sdl2.ext.surface_to_ndarray` functions
are the fastest and most flexible way of directly accessing the pixels of an
SDL surface. However, the pure-Python :class:`~sdl2.ext.PixelView` class can
be used instead to avoid adding Numpy as a dependency for your project.

.. automodule:: sdl2.ext.pixelaccess
   :members: