[Tutor] Python Picture

Phil Harris phil@media-1.ml.uwcm.ac.uk
Thu, 11 Mar 1999 09:42:42 -0000


And now, the easy way to convert ico files to bitmaps.

Open windows explorer, hilite the file to be converted, and rename it, the
file is automaticaly converted by Windows.

Easy when you know how eh!


----- Original Message -----
From: Christian Tismer <tismer@appliedbiometrics.com>
To: <GBCGOLF@aol.com>
Cc: <tutor@python.org>
Sent: Wednesday, March 10, 1999 7:29 PM
Subject: Re: [Tutor] Python Picture




GBCGOLF@aol.com wrote:
>
> I'm finishing a "beginners" paper on Python (i.e.: please have mercy, I'm
a
> newbie.)  I would like to put the "Python" symbol (prefer full snake icon
over
> snake head icon) on the first page of a MS Word (Office 97) document.  Is
that
> possible?  If so, how.  I need to turn in the paper this evening so I may
have
> posted this question too late for a response.  Thanks much for any info.
> Beth

You mean the icons from PythonWin, and these are .ico files.
You can of course turn it into a graphics format which
Word will accept. There are several ways to do that.
Assuming you have the Office 97 full tool set, there is the
Microsoft Photo editor as well.

Here is a brute force attack :-)

Open an Explorer Window in a directory with a couple of .py files.
Change the display (view menu) to "big symbols" and scroll until
you have some nice Pythons in sight.
Hold alt-shift down and press the print key.
This gives you a snapshot of the current window in the clipboard.
Now open the Photo editor, and select "edit - insert as picture"
(maybe slightly different, my German version reads
"bearbeiten - als neues Bild einfügen".
Having done that, you have the screenshot in the Photo Editor.

Now zoom to 800%, use the selection tool and capture a
Python. 32x32 pixels should be the exact result, or something is
wrong.
Now use edit - copy to copy this selection into the clipbord.
Create another picture which is your Python cutout, again with
the "insert as picture" operation.
Now save the file in a format as you like. BMP will work,
GIF is ok as well. You can also leave it in Photo Editor
format since Word can display it. Just open Word and insert
the graphic object from the clipboard.

Note that a JPeg version with 90% quality looks better for me
than the original.

Note also that the same procedure is possible with a number
of other graphic editors like Paintshop Pro or Adobe Photoshop.
In Photoshop, you would simply select the 32x32 range and use
image/crop to adjust the size.

Alternatively, you can grab such a Python from the internet.
See http://starship.python.net/crew/skippy/ where you will
find an animated Python gif from Mark Hammond. But I doubt
that it will stay animated in the Word document,
at least not after printing :-)

have fun - chris

--
Christian Tismer             :^)   <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101   :    *Starship* http://starship.python.net
10553 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     we're tired of banana software - shipped green, ripens at home

----------------------------------------------------------------------------
----




----------------------------------------------------------------------------
----