PSDraw
index
/Library/Python/2.7/site-packages/PIL/PSDraw.py

# The Python Imaging Library
# $Id$
#
# simple postscript graphics interface
#
# History:
# 1996-04-20 fl   Created
# 1999-01-10 fl   Added gsave/grestore to image method
# 2005-05-04 fl   Fixed floating point issue in image (from Eric Etheridge)
#
# Copyright (c) 1997-2005 by Secret Labs AB.  All rights reserved.
# Copyright (c) 1996 by Fredrik Lundh.
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
EpsImagePlugin
string

 
Classes
       
PSDraw

 
class PSDraw
     Methods defined here:
__init__(self, fp=None)
begin_document(self, id=None)
Write Postscript DSC header
end_document(self)
Write Postscript DSC footer
image(self, box, im, dpi=None)
Write an PIL image
line(self, xy0, xy1)
rectangle(self, box)
setfont(self, font, size)
setink(self, ink)
text(self, xy, text)

 
Data
        EDROFF_PS = '/S { show } bind def\n/P { moveto show } bind def... [ exch /setfont cvx ] cvx bind def\n} bind def\n'
ERROR_PS = '/landscape false def\n/errorBUF 200 string def\n/e... errorNL\n } forall\n end showpage\n} def end\n'
VDI_PS = '/Vm { moveto } bind def\n/Va { newpath arcn strok...currentgray exch setgray fill setgray } bind def\n'