By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,764 Members | 1,389 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,764 IT Pros & Developers. It's quick & easy.

wxPython: wxStaticBitmap and large images

P: n/a
I have a WxPython app that displays images that are typically around
600x600 pixels. I use a wxStaticBitmap, which appears to work fine on
Windows XP. However the documentation states that a StaticBitmap "...
is meant for display of the small icons in the dialog boxes and is not
meant to be a general purpose image display control. In particular,
under Windows 9x the size of bitmap is limited to 64*64 pixels and thus
you should use your own control if you want to display larger images
portably".

Assuming that I don't care about Windows 9X, should I be worried? Is
there a better way to display images, hopefully without diving down
into the device context level?

Jul 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Roger Miller wrote:
I have a WxPython app that displays images that are typically around
600x600 pixels. I use a wxStaticBitmap, which appears to work fine on
Windows XP. However the documentation states that a StaticBitmap "...
is meant for display of the small icons in the dialog boxes and is not
meant to be a general purpose image display control. In particular,
under Windows 9x the size of bitmap is limited to 64*64 pixels and thus
you should use your own control if you want to display larger images
portably".

Assuming that I don't care about Windows 9X, should I be worried? Is
there a better way to display images, hopefully without diving down
into the device context level?
I would just roll your own control. Its not too complicated. Just
derive from a wxWindow and in your WM_PAINT hander, draw your bitmap.

An alternative may be to place your bitmap in html and use a
wxHtmlWindow to display it.

Will McGugan
--
http://www.willmcgugan.com

Jul 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.