[Image-SIG] Do PIL image objects support the Buffer interface?

Kevin@Cazabon.com kevin@cazabon.com
Thu, 18 Apr 2002 18:19:01 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C1E705.83EDD860
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is there a simple way to access the raw data of an Image object through =
C/C++, similar to the standard Python Buffer Interface?

I'd rather not have to convert it to a string/array then send it to my C =
DLL, then convert it back to an Image, if at all possible... the double =
conversion process is a heavy overhead.

Thanks!

Kevin
------=_NextPart_000_001F_01C1E705.83EDD860
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4913.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Is there a simple way to access the raw =
data of an=20
Image object through C/C++, similar to the standard Python Buffer=20
Interface?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'd rather not have to convert it to a =
string/array=20
then send it to my C DLL, then convert it back to an Image, if at all=20
possible... the double conversion process is a heavy =
overhead.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Kevin</FONT></DIV></BODY></HTML>

------=_NextPart_000_001F_01C1E705.83EDD860--