Metadata-Version: 1.0
Name: pypotrace
Version: 0.1
Summary: potrace Python bindings
Home-page: http://github.com/flupke/pypotrace
Author: Luper Rouch
Author-email: luper.rouch@gmail.com
License: UNKNOWN
Description: potrace Python bindings
        =======================
        
        These bindings provide an object oriented API to the `potrace`_ library.
        
        Example usage
        -------------
        
        The bindings work with input images represented as numpy arrays::
        
            import numpy as np
            import potrace
        
            # Make a numpy array with a rectangle in the middle
            data = np.zeros((32, 32), np.uint32)
            data[8:32-8, 8:32-8] = 1
        
            # Create a bitmap from the array
            bmp = potrace.Bitmap(data)
        
            # Trace the bitmap to a path
            path = bmp.trace()
            
            # Iterate over path curves
            for curve in path:
                print "start_point =", curve.start_point
                for segment in curve:
                    print segment
                    end_point_x, end_point_y = segment.end_point
                    if segment.is_corner:
                        c_x, c_y = segment.c
                    else:
                        c1_x, c1_y = segment.c1
                        c2_x, c2_y = segment.c2
           
        Installation
        ------------
        
        Make sure you have the agg and potrace development packages installed
        (libagg-dev and libpotrace-dev on ubuntu) and run::
        
            python setup.py install
        
        Documentation
        -------------
        
        The documentation is hosted here: http://packages.python.org/pypotrace
        
        A copy is also included in the ``doc/_build/html`` directory of the source
        distribution.
        
        Homepage
        --------
        
        This project is hosted on github: http://github.com/flupke/pypotrace
        
        .. _potrace: http://potrace.sourceforge.net/
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
