Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  trouble displaying images
« previous next »
  • Print
Pages: [1]

Author Topic: trouble displaying images  (Read 2442 times)

Offline blackthunder

  • Member
  • *
  • Posts: 26
trouble displaying images
« on: September 25, 2006, 04:58:26 AM »
This is my code, I've checked it over again and again, played around with it a bit, and nomatter what I do I can't get the volume images to show up.  I thought it might be the number of files I had loaded so I cut that down, and still no luck.  If anyone has any idea how to fix this please let me know thanks.

oh, what I'm trying to do is have images display the strength of the battery and the volume, this seems like it should be simple enough

Code: [Select]
%x|a|background.bmp|0|0|
%P|playbar.bmp|
%xl|b|batc.bmp|137|2|
%xl|c|bat0.bmp|137|2|
%xl|d|bat1.bmp|137|2|
%xl|e|bat2.bmp|137|2|
%xl|f|bat3.bmp|137|2|
%xl|g|bat4.bmp|137|2|
%xl|h|bat5.bmp|137|2|
%xl|i|bat6.bmp|137|2|
%xl|j|bat7.bmp|137|2|
%xl|k|bat8.bmp|137|2|
%xl|l|bat9.bmp|137|2|
%xl|m|v0.bmp|109|2|
%xl|n|v1.bmp|109|2|
%xl|o|v2.bmp|109|2|
%xl|p|v3.bmp|109|2|
%xl|q|v4.bmp|109|2|
%xl|r|v5.bmp|109|2|
%xl|s|v6.bmp|109|2|
%xl|t|v7.bmp|109|2|
%xl|u|v8.bmp|109|2|
%xl|v|v9.bmp|109|2|
%wd


%al  %?pp<[%pp/%pe]|>%ar%fc%?fb<%?fv<%fbVB|%fbK>|>  
%s%al  %ia
%s%al  %it

%s%ac%Ia - %It

%al  %pc%ar%pt  
%pb|6|5|155|
%?pv<%xdm|%xdn|%xdo|%xdp|%xdq|%xdr|%xds|%xdt|%xdu|%xdv>
%?bp<%?bc<%xdb|%xdl>|%?bl<%xdc|%xdd|%xde|%xdf|%xdg|%xdh|%xdi|%xdj|%xdk|%xdl>>
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: trouble displaying images
« Reply #1 on: September 25, 2006, 11:30:28 AM »
How big are your images, both height/width and size in kb?  How did you create them (what program), and are they saved as RGB?
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline blackthunder

  • Member
  • *
  • Posts: 26
Re: trouble displaying images
« Reply #2 on: September 26, 2006, 05:42:33 PM »
well I had a 128x160 'backgrond' image that was like 61, this wasn't really a background image because I wanted to make it so you could change the backdrop to whatever you wanted but keep the same wps, all the others were relatively small in size and pixels, I used photoshop to create them and they were saved as 24bit windows bmp's.

I read somewhere that there is a size limit for graphics you can use.  I figured this was my problem since some images would show and others would not.  I cut the background image down into  a top and bottom image instead of a full screen image with a bunch of transparency in the middle, that seemed to solve the problem as what I have now shows up.  I'm a little worried I may run into this limit again, so now my question is what is the limit in images I can load on an iRiver H10 20gb?  I couldn't find this information anywhere.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: trouble displaying images
« Reply #3 on: September 27, 2006, 12:26:00 AM »
I don't know what the limit is, but I've hit it some times.  It appears to not be a limit on the *total* size, but on each individual file.  Like you can have nine 50x50 bitmaps, but not one 150x150 bitmap, even though they are the same size (actually, the one file is smaller).

I just made those numbers up, but you get the idea.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline lowlight

  • Developer
  • Member
  • *
  • Posts: 194
Re: trouble displaying images
« Reply #4 on: September 27, 2006, 01:09:35 AM »
You can have 52 different images, but there's one image buffer for all the images. The size depends on your device...from apps/gui/gwps.h:
Code: [Select]
#define IMG_BUFSIZE ((LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) + (2*LCD_HEIGHT*LCD_WIDTH/8))
Looks like enough for a background image and 2 other "screens" worth of images.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: trouble displaying images
« Reply #5 on: September 27, 2006, 02:16:03 AM »
Then why, whenever I've tried to load a single image much larger than 150x150, it's failed to display?

Note, I haven't tried this recently, so if this changed in the past... say... month or so then the change is welcome.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline blackthunder

  • Member
  • *
  • Posts: 26
Re: trouble displaying images
« Reply #6 on: September 27, 2006, 02:42:34 AM »
Quote
ooks like enough for a background image and 2 other "screens" worth of images.

Thats probably about what I had, I had a backdrop image loaded, another full screen image that was largly transperent, then a bunch of smaller pictures for battery, volume, ect.  When I cut down the size of the large picture everything worked.  Thanks for the info though, now I know about how far I can go with images.

Quote
Then why, whenever I've tried to load a single image much larger than 150x150, it's failed to display?
My H10 has a 160x128 display, when I tried to load a larger image it failed, I assumed this is because the file is larger than the screen
Logged

Offline lowlight

  • Developer
  • Member
  • *
  • Posts: 194
Re: trouble displaying images
« Reply #7 on: September 27, 2006, 11:59:10 AM »
Upon closer inspection, it looks like backdrops are stored in a separate buffer. And it code won't load images larger that the lcd size.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  trouble displaying images
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.071 seconds with 14 queries.