As a newbie, can someone point me in the right direction?
I wish to use part of the doodle demo code in my project. I then wish to display a number of doodles at roughly 1/64 (1/8H x 1/8W) of the original size. I think I can achieve this by saving the doodle in a standard format and just displaying it at its new size.
Q: Where would I start to be able to save a doodle in a standard format, like JPEG or PNG?
Thanks in advance.
Mike
Mike Edmonds wrote:
As a newbie, can someone point me in the right direction?
I wish to use part of the doodle demo code in my project. I then wish to display a number of doodles at roughly 1/64 (1/8H x 1/8W) of the original size. I think I can achieve this by saving the doodle in a standard format and just displaying it at its new size.
Q: Where would I start to be able to save a doodle in a standard format, like JPEG or PNG?
Thanks in advance.
Mike
Mike,
PIL, the Python Imaging Library can import and export many file formats.
Barry
Barry
Thanks, yes, I have had a look at that. It is the 'importing' that stumps
me, since the doodle doesn't start out life as a file, but rather a .. well,
um... a doodle. The format of a saved file (using superdoodle.py) is that of
a doodle (.ddl file) which PIL doesn't appear to support (and why should it,
I guess).
What I need to be able to do is use something like PIL to take a portion of
the screen and save it.
Can you point me to a PIL routine that might help?
Mike
ยทยทยท
----- Original Message -----
From: "Barry Tolnas" <tolnasb@evergreen.edu>
To: <wxPython-users@lists.wxwindows.org>
Sent: Monday, November 03, 2003 8:06 AM
Subject: Re: [wxPython-users] Doodle to JPEG (or whatever)
Mike Edmonds wrote:
>As a newbie, can someone point me in the right direction?
>
>I wish to use part of the doodle demo code in my project. I then wish to
display a number of doodles at roughly 1/64 (1/8H x 1/8W) of the original
size. I think I can achieve this by saving the doodle in a standard format
and just displaying it at its new size.
>
>Q: Where would I start to be able to save a doodle in a standard format,
like JPEG or PNG?
>
>Thanks in advance.
>
>Mike
>
>
Mike,
PIL, the Python Imaging Library can import and export many file formats.
Barry
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org