pymagery — python imagery
1.1.0 documentation / copy plugin
The copy plugin duplicates the pixel data as a new image object. Theoretically, this would be the same as using the copy.deepcopy() method included with python. However, this plugin does a more mechanical approach of creating a new image then manually setting the appropriate parameters and copying the pixel data pixel-by-pixel. Since this plugin returns a brand-spaken-new image the uppercase function is not enabled.
The plugin prototype is:
def copy()
The following example performs a copy of an image into k:
import pymagery
i = pymagery.image('foo.ppm')
k = i.copy()
At this point both i and k can be manipulated separately.
Change Log
- 1.0.0 — added
Copyright © 2008 Colin ML Burnett, released under GPLv2