> You might consider using python-imaging
> to display the image after writing it
> from cairo
>
> import image
import statement should be
import Image
note uppercase I
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
--
https://mail.python.org/mailman/listinfo/py
>
> Could matplotlib be used to show the image?
You might consider using python-imaging
to display the image after writing it
from cairo
import image
surface.write_to_png ( "x_surface.png" )
img = Image.open( "x_surface.png" )
img.show( command = 'display' )
Could you be a little more specific (giving, for instance, a full working
example)?
I tried to interchange
surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
with
surface = cairo.Win32Surface (cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
but that didn't seem to work.
Could matplotlib be
Hi Poul,
I recently used cairo in a python project
(https://github.com/luismqueral/jumpcityrecords). To see the cairo drawing
directly on the screen I wrote a minimal Gtk application. It's in the 'src'
directory and is called 'randomdraw.py'. Maybe it is of some help to you.
Greetings,
--
"
> On Feb 3, 2015, at 1:00 PM, Poul Riis wrote:
>
> I just tried the Cairo Python module.
> I ran the test file below.
> It works perfectly but instead of saving the resulting image as a file I want
> to see it displayed directly on the screen.
> How can I do that?
>
I have quiet a bit of expe
I just tried the Cairo Python module.
I ran the test file below.
It works perfectly but instead of saving the resulting image as a file I want
to see it displayed directly on the screen.
How can I do that?
Poul Riis
import math
import cairo
WIDTH, HEIGHT = 256, 256
surface = cairo.ImageSurf