Did I find the right examples for you? yes no

All Samples(168)  |  Call(0)  |  Derive(0)  |  Import(168)

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/ImageDemo.py   Webware-for-Python(Download)
    gdImage = None
    try: # Python Imaging Library
        import Image as pilImage, ImageDraw, ImageFont
    except ImportError:
        try:

src/k/w/kwant-1.0.0/examples/logo.py   kwant(Download)
"""The script generating Kwant logo. In addition to Kwant it also needs Python
image library (PIL)."""
 
import Image
import ImageFont

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/imaging/ImageDraw2.py   Spherebot-Host-GUI(Download)
#
 
import Image, ImageColor, ImageDraw, ImageFont, ImagePath
 
class Pen:

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/imaging/ImageDraw.py   Spherebot-Host-GUI(Download)
    def getfont(self):
        if not self.font:
            # FIXME: should add a font repository
            import ImageFont
            self.font = ImageFont.load_default()

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/PIL/ImageDraw2.py   Spherebot-Host-GUI(Download)
#
 
import Image, ImageColor, ImageDraw, ImageFont, ImagePath
 
class Pen:

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/PIL/ImageDraw.py   Spherebot-Host-GUI(Download)
    def getfont(self):
        if not self.font:
            # FIXME: should add a font repository
            import ImageFont
            self.font = ImageFont.load_default()

src/z/i/zima-0.1.106/zima/captcha/helpers.py   zima(Download)
def mutateToImg(text, cfg):
    import Image, ImageDraw, ImageFont
    # 'cmunrb.otf'
    font = ImageFont.truetype(cfg.fontName, 16, encoding='unic')
    rect = font.getsize(text)
def mutateToFormulaImg(text):
    import matplotlib.mathtext as mtext
    import Image, ImageDraw, ImageFont
    parser = mtext.MathTextParser('Bitmap')
    res = parser.parse(r'$%s$' % (text,), dpi=100)[0]

src/o/r/Orange-2.7.2/Orange/orng/orngMisc.py   Orange(Download)
    def __init__(self, width, height):
        Renderer.__init__(self, width, height)
        import Image, ImageDraw, ImageFont
        self._pil_image = Image.new("RGB", (width, height), (255, 255, 255))
        self._draw = ImageDraw.Draw(self._pil_image, "RGB")
    def set_font(self, family, size):
        Renderer.set_font(self, family, size)
        import ImageFont
        try:
            font_file = os.path.join(install_dir, "utils", family + ".ttf")

src/t/w/tw2.captcha-0.0.4/tw2/captcha/plugins/image/vanasco_dowty/captcha.py   tw2.captcha(Download)
 
import Image
import ImageFont
import ImageDraw
import ImageFilter

src/c/o/ConceptBro-HEAD/Canvas/utils/render.py   ConceptBro(Download)
    def __init__(self, width, height):
        Renderer.__init__(self, width, height)
        import Image, ImageDraw, ImageFont
        self._pil_image = Image.new("RGB", (int(width), int(height)), (255, 255, 255))
        self._draw = ImageDraw.Draw(self._pil_image, "RGB")
    def set_font(self, family, size):
        Renderer.set_font(self, family, size)
        import ImageFont
        try:
            font_file = os.path.join(install_dir, "utils", family + ".ttf")

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next