Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/ImagePath.cpython-35.opt-1.pyc



�ʴW�@s6ddlmZGdd�de�ZejjZdS)�)�Imagec@s^eZdZdd�Zddd�Zdd�Zdd	�Zd
dd�Zd
d�ZdS)�PathcCsdS)N�)�selfZxyrr�@/opt/alt/python35/lib64/python3.5/site-packages/PIL/ImagePath.py�__init__sz
Path.__init__�cCsdS)z�
        Compacts the path, by removing points that are close to each other.
        This method modifies the path in place.
        Nr)rZdistancerrr�compactszPath.compactcCsdS)zGets the bounding box.Nr)rrrr�getbbox#szPath.getbboxcCsdS)z!Maps the path through a function.Nr)rZfunctionrrr�map'szPath.maprcCsdS)a
        Converts the path to Python list.
        #
        @param flat By default, this function returns a list of 2-tuples
            [(x, y), ...].  If this argument is true, it returns a flat list
            [x, y, ...] instead.
        @return A list of coordinates.
        Nr)rZflatrrr�tolist+s	zPath.tolistcCsdS)zTransforms the path.Nr)rZmatrixrrr�	transform6szPath.transformN)	�__name__�
__module__�__qualname__rr	r
rrr
rrrrrsrN)ZPILr�objectrZcore�pathrrrr�<module>s%