wxpython, dc.GetAsBitmap returns an invalid bitmap -


I'm trying to get a bitmap of the one which draws my DC, but when I change it to the image I am

  file: c: \ Python 25 \ lib \ site-packages \ wx-2.8-msw-Unicode \ wx \ _gdi.py ", line 618, convertro image return _gdi_.bitmap_ConvertToImage (* Args, ** kwargs) Wx._core.PyAssertionError: C ++ asserttion "bmp.Ok ()" has failed .. \. \ Src \ msw \ dib.cpp (148) wxDIB :: :: () : WxDIB :: Create (): invalid bitmap  

the attempt to draw another bitmap to the other DC I also remember this when I am doing so, so remember to read about how to store the image of Clintdice in MemoriDisi, then clean the clientand and drag the contents of the memorandum back to it. What is it?

  bitmap = wx.EmptyBitmap (width, height) memory = Wx.MemoryDC () Memory Selection Object (Bitmap) # Set Pen, Draw Memory. Selection object (wx.NullBitmap) img = wx.ImageFromBitmap (bitmap)  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -