[python-win32] Re: COM IPicture, accessing image data from python
Roger Upole
rwupole at msn.com
Fri Jul 28 22:46:19 CEST 2006
paul sorenson wrote:
>I am trying to communicate with a COM interface which, among other
> things, provides an IPicture.
>
> I can read the IPicture attribute without too much trouble but it is not
> clear to me how one goes about accessing the image data in python. If
> anyone has any tips that would be most helpful.
>
According to MSDN, the IPicture interface exposes the bitmap handle,
so you should be able to use win32ui.CreateBitmapFromHandle, and
then PyBitmap.GetBitmapBits to get the raw data.
Roger
More information about the Python-win32
mailing list