34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
|
From: akuchlin at cnri.reston.va.us (Andrew M. Kuchling)
|
||
|
Date: Thu, 29 Apr 1999 12:39:12 -0400 (EDT)
|
||
|
Subject: GUI and creating GIF
|
||
|
In-Reply-To: <7g7u2k$fr0$1@wanadoo.fr>
|
||
|
References: <7g7u2k$fr0$1@wanadoo.fr>
|
||
|
Message-ID: <14120.35313.19477.657175@amarok.cnri.reston.va.us>
|
||
|
X-UID: 256
|
||
|
|
||
|
Frank.Derville writes:
|
||
|
>I would like to
|
||
|
>1) create a GIF file under Python by drawing lines, text, ... I have looked
|
||
|
>at Tk which can create bitmaps and photoimage but their seem to be no
|
||
|
>possibility to transform a canvas into a photoimage.
|
||
|
>2) rotate some text on a canvas.
|
||
|
|
||
|
The Python Imaging Library seems to be what you need; look at
|
||
|
http://www.pythonware.com/products/pil/ . PIL lets you create Image
|
||
|
objects which are bitmaps that you can draw on and manipulate in
|
||
|
various ways, and save Images in one of a large number of different
|
||
|
formats, GIF and JPEG being the most common ones. There's also some
|
||
|
connectivity with Tkinter, so you can display Images on a canvas. I'm
|
||
|
not sure if PIL's font code can handle rotation, though.
|
||
|
|
||
|
--
|
||
|
A.M. Kuchling http://starship.python.net/crew/amk/
|
||
|
Fast, fat computers breed slow, lazy programmers.
|
||
|
-- Robert Hummel
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|