> aggdraw in itself is cross-platform. if you're not on Windows, or prefer
> to write portable code, you can either use tostring() or PIL to transfer
> the images from aggdraw's internal buffer to the format used by the UI
> toolkit you're using.
Or you could try using pycairo (http://cairographi
Arnd Baecker wrote:
> Does the ".tostring()" part cost a lot of performance?
Well, I think you get at least two copies of the data: one to make the
string, and then another one to make the wx.image. It would be nice to
just pass a pointer to the data buffer right through to wx.Image.
Fredrik,
On Wed, 26 Oct 2005, Fredrik Lundh wrote:
> for example, you can write portable Tkinter code via PIL's ImageTk layer:
>
> im = Image.new("RGB", size)
> draw = aggdraw.Draw(im)
> ...
> draw.flush()
> del draw
>
> image = ImageTk.PhotoImage(im)
>
> or you can use something li
Stani wrote:
> Any chance for a cross-platform solution?
aggdraw in itself is cross-platform. if you're not on Windows, or prefer
to write portable code, you can either use tostring() or PIL to transfer
the images from aggdraw's internal buffer to the format used by the UI
toolkit you're using.