|
|
|
|
|
|
| Author |
Message |
Will McGugan *nix forums addict
Joined: 19 Feb 2005
Posts: 87
|
Posted: Thu Jul 20, 2006 12:00 pm Post subject:
Re: wxPython: wxStaticBitmap and large images
|
|
|
Roger Miller wrote:
| Quote: | 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 |
|
| Back to top |
|
 |
Roger Miller *nix forums beginner
Joined: 29 Mar 2006
Posts: 11
|
Posted: Wed Jul 19, 2006 11:27 pm Post subject:
wxPython: wxStaticBitmap and large images
|
|
|
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? |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Dec 04, 2008 3:35 am | All times are GMT
|
|
Loans | Remortgages | Best Credit Cards | Credit Check | Synchronization fast and easy
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|