[python-win32] How to use IExtractImage in python

Tony Cappellini cappy2112 at gmail.com
Thu Apr 19 18:52:17 CEST 2007


Would it be possible to launch AutoCad, then use Python/PIL to do
screenshots of the images?

Message: 1
Date: Wed, 18 Apr 2007 09:15:29 -0400
From: "Steven James" <steven.james at gmail.com>
Subject: [python-win32] How to use IExtractImage in python
To: python-win32 at python.org
       <e3c91420704180615y35b96a58taf1ab0efc537082e at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I am attempting to add a simple thumbnail preview in a wxpython app I'm
putting together. IExtractImage seems to be the way to access the thumbnails
that Windows Explorer uses.

(I can't use PIL or similar because I'm previewing AutoCAD .dwg files).

I am adapting some Delphi COM code (from
as follows--i've removed the Malloc and other unnecessary statements:

More information about the Python-win32 mailing list