Current File : //opt/RZpython2/lib/python2.7/site-packages/gd.pyc |
�
6+�Qc @ s6 d Z d d l Z d d l T[ d d d � � YZ d S( s� GD module is an interface to the GD library written by Thomas Bouttel.
It allows your code to quickly draw images complete with lines, arcs,
text, multiple colors, cut and paste from other images, and flood fills,
and write out the result as a .PNG, .JPEG, or .WBMP file. This is
particularly useful in World Wide Web applications, where .JPEG is
universally supported and PNG is the up-and-coming format used for
inline images. It has been extended in some ways from the original GD
library.i����N( t *t imagec B s} e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z RS(
c G sM t | d t � r3 t | � } | d j | d <n t j | � | j d <d S( Ni t _image( t
isinstanceR t listR t _gdt __dict__( t selft args( ( s0 /opt/RZpython2/lib/python2.7/site-packages/gd.pyt __init__ s c C s t | j | � S( N( t getattrR ( R t name( ( s0 /opt/RZpython2/lib/python2.7/site-packages/gd.pyt __getattr__ s c C s t | j | | � S( N( t setattrR ( R R t value( ( s0 /opt/RZpython2/lib/python2.7/site-packages/gd.pyt __setattr__ s c C sQ t | d � } x: | d D]. } t | � } | j j | | | � | } q Wd S( sI draw a line along the sequence of points in the list or tuple using colori i N( t tupleR t line( R t pointst colort prevt p( ( s0 /opt/RZpython2/lib/python2.7/site-packages/gd.pyt lines s
c G s | j j | j | � S( N( R t copyTo( R t imR ( ( s0 /opt/RZpython2/lib/python2.7/site-packages/gd.pyR &