pilgui / pythondoc-PIL.ImageDraw.xml

<module filename="C:\PROGRAM FILES\PYTHON27\lib\site-packages\PIL\ImageDraw.py" name="PIL.ImageDraw"><class lineno="46" name="PIL.ImageDraw.ImageDraw"><info><def>ImageDraw</def><name>ImageDraw</name><summary>A simple 2D drawing interface for PIL images.</summary><description><p>A simple 2D drawing interface for PIL images.
</p><p>
Application code should use the <b>Draw</b> factory, instead of
directly.
</p></description></info><method lineno="58" name="PIL.ImageDraw.ImageDraw.__init__"><info><def>__init__(im, mode=None)</def><name>__init__</name><summary>Create a drawing instance.</summary><description>Create a drawing instance.</description><param name="im">The image to draw in.</param><param name="mode">Optional mode to use for color values.  For RGB
   images, this argument can be RGB or RGBA (to blend the
   drawing into the image).  For all other modes, this argument
   must be the same as the image mode.  If omitted, the mode
   defaults to the mode of the image.</param></info></method><method lineno="92" name="PIL.ImageDraw.ImageDraw.setink"><info><def>setink(ink)</def><name>setink</name><summary>Set the default pen color.</summary><description>Set the default pen color.</description></info></method><method lineno="108" name="PIL.ImageDraw.ImageDraw.setfill"><info><def>setfill(onoff)</def><name>setfill</name><summary>Set the default background color.</summary><description>Set the default background color.</description></info></method><method lineno="120" name="PIL.ImageDraw.ImageDraw.setfont"><info><def>setfont(font)</def><name>setfont</name><summary>Set the default font.</summary><description>Set the default font.</description></info></method><method lineno="127" name="PIL.ImageDraw.ImageDraw.getfont"><info><def>getfont()</def><name>getfont</name><summary>Get the current default font.</summary><description>Get the current default font.</description></info></method><method lineno="134" name="PIL.ImageDraw.ImageDraw._getink"><info><def>_getink(ink, fill=None)</def><name>_getink</name></info></method><method lineno="158" name="PIL.ImageDraw.ImageDraw.arc"><info><def>arc(xy, start, end, fill=None)</def><name>arc</name><summary>Draw an arc.</summary><description>Draw an arc.</description></info></method><method lineno="166" name="PIL.ImageDraw.ImageDraw.bitmap"><info><def>bitmap(xy, bitmap, fill=None)</def><name>bitmap</name><summary>Draw a bitmap.</summary><description>Draw a bitmap.</description></info></method><method lineno="177" name="PIL.ImageDraw.ImageDraw.chord"><info><def>chord(xy, start, end, fill=None, outline=None)</def><name>chord</name><summary>Draw a chord.</summary><description>Draw a chord.</description></info></method><method lineno="187" name="PIL.ImageDraw.ImageDraw.ellipse"><info><def>ellipse(xy, fill=None, outline=None)</def><name>ellipse</name><summary>Draw an ellipse.</summary><description>Draw an ellipse.</description></info></method><method lineno="197" name="PIL.ImageDraw.ImageDraw.line"><info><def>line(xy, fill=None, width=0)</def><name>line</name><summary>Draw a line, or a connected sequence of line segments.</summary><description>Draw a line, or a connected sequence of line segments.</description></info></method><method lineno="205" name="PIL.ImageDraw.ImageDraw.shape"><info><def>shape(shape, fill=None, outline=None)</def><name>shape</name><summary>(Experimental) Draw a shape.</summary><description>(Experimental) Draw a shape.</description></info></method><method lineno="217" name="PIL.ImageDraw.ImageDraw.pieslice"><info><def>pieslice(xy, start, end, fill=None, outline=None)</def><name>pieslice</name><summary>Draw a pieslice.</summary><description>Draw a pieslice.</description></info></method><method lineno="227" name="PIL.ImageDraw.ImageDraw.point"><info><def>point(xy, fill=None)</def><name>point</name><summary>Draw one or more individual pixels.</summary><description>Draw one or more individual pixels.</description></info></method><method lineno="235" name="PIL.ImageDraw.ImageDraw.polygon"><info><def>polygon(xy, fill=None, outline=None)</def><name>polygon</name><summary>Draw a polygon.</summary><description>Draw a polygon.</description></info></method><method lineno="245" name="PIL.ImageDraw.ImageDraw.rectangle"><info><def>rectangle(xy, fill=None, outline=None)</def><name>rectangle</name><summary>Draw a rectangle.</summary><description>Draw a rectangle.</description></info></method><method lineno="255" name="PIL.ImageDraw.ImageDraw.text"><info><def>text(xy, text, fill=None, font=None, anchor=None)</def><name>text</name><summary>Draw text.</summary><description>Draw text.</description></info></method><method lineno="275" name="PIL.ImageDraw.ImageDraw.textsize"><info><def>textsize(text, font=None)</def><name>textsize</name><summary>Get the size of a given string, in pixels.</summary><description>Get the size of a given string, in pixels.</description></info></method></class><function lineno="290" name="PIL.ImageDraw.Draw"><info><def>Draw(im, mode=None)</def><name>Draw</name><summary>A simple 2D drawing interface for PIL images.</summary><description>A simple 2D drawing interface for PIL images.</description><param name="im">The image to draw in.</param><param name="mode">Optional mode to use for color values.  For RGB
   images, this argument can be RGB or RGBA (to blend the
   drawing into the image).  For all other modes, this argument
   must be the same as the image mode.  If omitted, the mode
   defaults to the mode of the image.</param></info></function><function lineno="310" name="PIL.ImageDraw.getdraw"><info><def>getdraw(im=None, hints=None)</def><name>getdraw</name><summary>(Experimental) A more advanced 2D drawing interface for PIL images,
based on the WCK interface.</summary><description>(Experimental) A more advanced 2D drawing interface for PIL images,
based on the WCK interface.</description><param name="im">The image to draw in.</param><param name="hints">An optional list of hints.</param><return>A (drawing context, drawing resource factory) tuple.</return></info></function><function lineno="338" name="PIL.ImageDraw.floodfill"><info><def>floodfill(image, xy, value, border=None)</def><name>floodfill</name><summary>(experimental) Fills a bounded region with a given color.</summary><description>(experimental) Fills a bounded region with a given color.</description><param name="image">Target image.</param><param name="xy">Seed position (a 2-item coordinate tuple).</param><param name="value">Fill color.</param><param name="border">Optional border value.  If given, the region consists of
    pixels with a color different from the border color.  If not given,
    the region consists of pixels having the same color as the seed
    pixel.</param><docstring>Fill bounded region.</docstring></info></function></module>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.