how to extract the wxMemoryDC-bitmap to a wxBitmap object?

Hi
Is it possible to extract a wxMemoryDC to a wxImage or a wxBitmap object?
(Can not use .ConvertToImage on a wxMemory bitmap)

I'm trying to rotate the bitmap in a wxMemory, save as a new wxMemory and
then blit to my dc.
... or is there another nicer way to do it ?

/Holmis

Hi
Is it possible to extract a wxMemoryDC to a wxImage or a wxBitmap object?
(Can not use .ConvertToImage on a wxMemory bitmap)

I'm trying to rotate the bitmap in a wxMemory, save as a new wxMemory and
then blit to my dc.
... or is there another nicer way to do it ?

wxMemoryDC is for drawing on bitmaps, not manipulating them. Convert
the wxBitmap to a wx.Image and use the wx.Image functions to rotate
it.

ยทยทยท

On 5/17/06, Stefan Holmgren <stefan.holmgren@accalon.se> wrote:

/Holmis

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org