473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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?

Jul 19 '06 #1
1 2105

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: max4 | last post by:
hello i would like to know if there is a good tutorial about how to do this or if someone could explain thank you
8
by: Jonathan Daugherty | last post by:
Does anyone here know if the wxImage class in wxPython supports dislaying images from URLs? -- Jonathan Daugherty http://www.cprogrammer.org "It's a book about a Spanish guy called Manual,...
21
by: j_mckitrick | last post by:
Just thought I'd play devil's advocate... I tried wxPython briefly, and it had some nice features. It has a huge list of dependencies. I don't like the fonts (but I'd love to know how to get...
3
by: Young H. Rhiu | last post by:
See: http://hilug.org/img/app_layout.GIF I'm implementing an album-like application with wxpython but I'm new to wxPython though I know how to program with python. The problem is that it's not...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.