![]() pygame documentation |
||
Pygame Home ||
Help Contents ||
Reference Index ||
Camera || Cdrom || Color || Cursors || Display || Draw || Event || Examples || Font || Freetype || Gfxdraw || Image || Joystick || Key || Locals || Mask || Math || Midi || Mixer || Mouse || Movie || Music || Overlay || Pixelarray || Pixelcopy || Pygame || Rect || Scrap || Sndarray || Sprite || Surface || Surfarray || Tests || Time || Transform |
pygame.pixelcopy.surface_to_array | — copy surface pixels to an array object |
pygame.pixelcopy.array_to_surface | — copy an array object to a surface |
pygame.pixelcopy.map_array | — copy an array to another array, using surface format |
The pygame.pixelcopy module contains methods for copying between surfaces and objects exporting an array structure interface.
New in pygame 1.9.2.
Copy a surface to an array object.
Copy an array to a surface.
Map an array of color element values - (w, h, ..., 3) - to an array of pixels - (w, h) according to the format of