niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » python
wxPython: wxStaticBitmap and large images
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Will McGugan
*nix forums addict


Joined: 19 Feb 2005
Posts: 87

PostPosted: Thu Jul 20, 2006 12:00 pm    Post subject: Re: wxPython: wxStaticBitmap and large images Reply with quote

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

PostPosted: Wed Jul 19, 2006 11:27 pm    Post subject: wxPython: wxStaticBitmap and large images Reply with 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?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 3:35 am | All times are GMT
navigation Forum index » Programming » python
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts new installation not finding large memory Miles Fidelman Debian 8 Thu Jul 20, 2006 9:00 pm
No new posts Images Table Nicholas Vettese MySQL 1 Thu Jul 20, 2006 2:19 pm
No new posts questions to anyone who uses wxPython nuno python 2 Thu Jul 20, 2006 4:12 am
No new posts large enterprise accounting package available? Tshepang Lekhonkhobe Debian 2 Wed Jul 19, 2006 1:30 pm
No new posts Solaris 8 install image and software v1 and v3 images BertieBigBollox@gmail.com Solaris 2 Tue Jul 18, 2006 2:07 pm

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
[ Time: 0.1199s ][ Queries: 20 (0.0513s) ][ GZIP on - Debug on ]