GetHDC missing in 2.5.x/Win32

Hi

I have been using wxPython for a while now, and have been very happy with
it. One of my existing projects is an image processing platform for
scientific analysis of flame images. It uses PIL and I have been using the
dc.GetHDC() method under Win32 along with the PIL DIB objects for the
drawing. This method disappeared under 2.5. I was wondering if it could
be restored.

I am certainly capable of doing this myself, and what I am doing can be done
instead with wxWidgets style bitmaps, but all my work is with 8 bit
intensity images with frequent palette changes, which can be more easily be
done on the PIL side. In fact, I indent do modify PIL to support palette
DIBs and try to get the patches included in future releases.

TIA Gary

Hubbard, Gary wrote:

Hi

I have been using wxPython for a while now, and have been very happy with
it. One of my existing projects is an image processing platform for
scientific analysis of flame images. It uses PIL and I have been using the
dc.GetHDC() method under Win32 along with the PIL DIB objects for the
drawing.

Interesting. Could you put a sample in the wiki that shows how to do that?

This method disappeared under 2.5. I was wondering if it could
be restored.

Yes. I didn't intend for it to be removed, probably a victim of a too agressive cut/paste operation.

I've added it back in.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hubbard, Gary wrote:

Hi

I have been using wxPython for a while now, and have been very happy with
it. One of my existing projects is an image processing platform for
scientific analysis of flame images. It uses PIL and I have been using the
dc.GetHDC() method under Win32 along with the PIL DIB objects for the
drawing. This method disappeared under 2.5. I was wondering if it could
be restored.

I am certainly capable of doing this myself, and what I am doing can be done
instead with wxWidgets style bitmaps, but all my work is with 8 bit
intensity images with frequent palette changes, which can be more easily be
done on the PIL side. In fact, I indent do modify PIL to support palette
DIBs and try to get the patches included in future releases.

Hi Gary,

Your project caught my interest since I'm working on something similar (analysis of flame and fluidic motions). I don't know the specific answer to your question but you're welcome to take a look at my code, where I'm also using PIL and support application of palette to false-color an image. I don't do exactly what you're after but something similar. Some of it might be useful to you.

http://microgravity.grc.nasa.gov/spotlight/

Regards,
Bob