recent changes

Jonathan Coles jonathan at jpcoles.com
Sat Jan 29 16:33:34 CET 2005


Am Samstag, den 29.01.2005, 02:28 -0500 schrieb Russell Nelson:
> The data being used to create the mask seems to be correct.  I printed
> it out and it appears to be correct.  data[0] and data[1] are correct.
> 
>             image.SetData(data[2][0])
>             if data[2][1] is not None:
>                 for b in data[2][1]:
>                     print hex(ord(b)),
>                 mask = wxBitmapFromBits(data[2][1], data[0], data[1], 1)
> 
> It really looks like wxBitmapFromBits(), or wxMask() are doing the
> wrong thing on my machine, but work fine on yours.

try these two things:

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

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)

--jonathan

-- 
=====================================================================
 Jonathan Coles                               http://www.jpcoles.com
 jonathan at jpcoles.com                    GnuPG Key: /gpg_pub_key.asc
=====================================================================




More information about the Thuban-devel mailing list

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