[Image-SIG] PIL: Images from C-Extension?

Sven Havemann s.havemann@tu-bs.de
Fri, 19 Mar 1999 21:58:00 +0100

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

fredrik_lundh@ivab.se is invalid??
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <s.havemann@tu-bs.de>
Received: from rzcomm1.rz.tu-bs.de (rzcomm1.rz.tu-bs.de [])
	by europa.cg.cs.tu-bs.de (8.8.7/8.8.7) with ESMTP id NAA24500;
	Fri, 19 Mar 1999 13:37:00 +0100
Received: from europa.cg.cs.tu-bs.de (root@europa.cg.cs.tu-bs.de [])
	by rzcomm1.rz.tu-bs.de (8.8.6/8.8.6) with ESMTP id NAA09464;
	Fri, 19 Mar 1999 13:38:13 +0100 (MET)
Received: from tu-bs.de (nurbs.cg.cs.tu-bs.de [])
	by europa.cg.cs.tu-bs.de (8.8.7/8.8.7) with ESMTP id NAA24494;
	Fri, 19 Mar 1999 13:36:55 +0100
Sender: havemann@europa.cg.cs.tu-bs.de
Message-ID: <36F24587.E418569F@tu-bs.de>
Date: Fri, 19 Mar 1999 13:39:35 +0100
From: Sven Havemann <s.havemann@tu-bs.de>
Organization: Institut fuer Computergrafik
X-Mailer: Mozilla 4.07C-SGI [en] (X11; I; IRIX 6.5 IP32)
MIME-Version: 1.0
To: fredrik_lundh@ivab.se
CC: n.schenk@tu-bs.de
Subject: PIL: Images from C-Extension?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi, Fredrik!

We're currently developing a radio wave field strength prediction tool
and would like to display the results using Python/Tkinter/PIL. - Now we
have a C-Extension module that performs the time-critical calculation
and produces a bitmap as a C-data-structure.

How can we display this with PIL?

We're currently reading the sources to find a hook; but the problem is
to get into PIL's colour and image administration procedures. I.e. what
we'd like to do is something like

im=Image.new("RGB", 300, 300)

We'll certainly get to this, but our question is:

Is there something like a tutorial example which demonstrates image
transferral from C? 

Greetings, Sven.

PS. PIL is _very_ cool.

 dipl-inform. Sven Havemann        Institut fuer ComputerGraphik
 Odastrasse 6                      Rebenring 18
 38122 Braunschweig - Germany      38106 Braunschweig - Germany
 Tel. 0531/2808955                 Tel. 0531/391-2108, Fax: -2103
 s.havemann@tu-bs.de               http://www.cg.cs.tu-bs.de