wxStaticBitmap

can someone please show me a better way to do this. i'm trying to read an image from a web page and add it to a wxStaticBitmap. i'm currently saving it the gif to a file, then reading it back in. there must be a way to not have to write the image to disk. i tried several ways, but this is the only way i've been able to correctly display the image.

gif = urlopen(‘http://xxx/picture.gif’).read()
file(‘x.gif’, ‘wb’).write(gif)
wxStaticBitmap(self, -1, wxBitmap(‘x.gif’, wxBITMAP_TYPE_GIF), wxPoint(0, 0), wxSize(450, 400))

thanks,
bryan

Bryan Weingarten wrote:

can someone please show me a better way to do this. i'm trying to read
an image from a web page and add it to a wxStaticBitmap.

See wxImageFromStream in the demo, under "Using Images"

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov