recent changes

Russell Nelson nelson at crynwr.com
Sat Jan 29 20:50:59 CET 2005


Jonathan Coles writes:
 > 1) instead of drawing the raster data in data[2][0], just try drawing
 > the bitmap returned from wxBitmapFromBits().

Couldn't get multiple attempts to work.  Kept getting a segmentation
fault.  Tried running gdb on it, but it didn't tell me anything
particularly useful other than that the problem was in
wxBitmapFromImage().

 > 2) after converting the bits to a bitmap, convert to a wxImage and
 > extract and print the data. (this data should be in the format RGBRGB...
 > even though it's mono)

I tried doing something that ought to work:

                mask = wxBitmapFromBits(data[2][1], data[0], data[1], 1)
                print mask.SaveFile("/tmp/abc.gif", wxBITMAP_TYPE_GIF)

/tmp/abc.gif is empty.  mask.SaveFile returned 0.  If I print
mask.Ok(), it prints 1.  If I change to writing a BMP, it succeeds in
writing an entirely black image.  On the other hand, if I run bmptopnm
on it, it says this:
bmptopnm: Windows BMP, 352x310x24
bmptopnm: Zero byte allocation

Something is still wrong, but I think it's not in Thuban.

-- 
--My blog is at angry-economist.russnelson.com  | Don't like poverty?
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315-323-1241 cell  | Try economic freedom!
Potsdam, NY 13676-3213  | +1 212-202-2318 VOIP  | 




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)