[python-win32] How to use IExtractImage in python
Niki Spahiev
niki at vintech.bg
Sat Apr 21 10:41:54 CEST 2007
> I realize that a discussion on wxpython would be outside this group's
> topic, but if anyone could tell me where to start looking for a way to
> do this, I would greatly appreciate it. From what I can tell,
> wxpython/wxwindows uses the HBITMAP type internally to store images, and
> it appears to be a pointer to a DIB in memory. If so, it may be possible
> to use wx.BitmapFromBuffer, wx.BitmapFromBits, or some similar function,
> if I can somehow convert the HBITMAP data (instead of the handle) to a
> string.
IIRC you can use wxDC.GetSafeHDC() and then win32gui to copy data to
wxBitmap
HTH
Niki Spahiev
More information about the Python-win32
mailing list