[Cairo] another set of Python bindings

Maarten Breddels dmon at xs4all.nl
Fri Sep 12 05:35:47 PDT 2003


> On Thu, Sep 11, 2003 at 09:30:18PM +0200, Maarten Breddels wrote:
> >Brian Victor wrote about wxPython:
> >> How hard would it be to make that work in James's version?
> >I guess not too hard, as long as you can get to the raw color data.
> >The problem I had, was that I needed to convert from BGRA to 
> RGB data.
> >I added a function to the pycairo binding for it. As you can 
> see in the
> >example below.
> [snip]
> 
> Seems reasonable.  I'd like to request, then, that 
> write32BGRAto24RGB be
> a part of whatever python binding eventually emerges from this.

Would be a good idea

> >Btw, are you using windows or linux or ... ?
> >I have a win32 installer executable ready for Python2.3
> 
> I'm using Linux and OSX.  I haven't actually been able to do anything
> with cairo yet; I was planning on wrapping it at the libsvg level.
> However, xsvg won't link for me and I haven't had to look at 
> it.  I may
> just extract the data I need from the SVG files and use cairo at this
> point.
> 
> Did you need the X11 header files or libraries to compile on 
> win32?  If
> not, that would be a significant OSX roadblock out of the way.

Yes, I just copies the whole X11 include dir from my linux partition,
it seemed to work :).
Are you interested in using my binding as it is now? 







More information about the cairo mailing list