[python-win32] PythonWin, PIL, hDIB

Mark Hammond MarkH@ActiveState.com
Tue, 4 Dec 2001 14:08:55 +1100


It looks like you need to say:

bitmap = win32ui.CreateBitmap()
bitmap.LoadBitmapFile()

Mark.

> Mark Hammond <MarkH@ActiveState.com> writes:
>
> > You could look at the Pythonwin pywin\demo\dibdemo.py file - not exactly
> > what you are after, but may be a good start.
> >
> > Mark.
>
> Mark, thanks for your input. I wish it was that easy...
>
> >>> import win32ui
> >>> dib = win32ui.CreateDIBitmap()
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> AttributeError: 'win32ui' module has no attribute 'CreateDIBitmap'
>
> That's with ActivePython 2.1.1 Build 212. Is there any other way to
> create DIB with PythonWin? Can PyBitmap be used for that purpose?
>
> TIA, A.R.
>
> --
> Complex problems have simple, easy to understand wrong answers.
>