win32 display jpg file

Mark Hammond mhammond at
Wed Apr 30 01:01:05 CEST 2003

Ilariu Raducan wrote:

> Hi All,
> Does anybody knows how to display a JPG file in pythonwin and draw lines 
> over it?

With a fair bit of work :)  You would need to use PIL to decode the jpg 
and convert it to a bitmap.  IIRC, Pythonwin still has a PIL demo in it. 
  To draw the lines you would then need to drop back to the Windows GDI API.


More information about the Python-list mailing list