Support and General Use > Theming and Appearance Customization
trouble displaying images
blackthunder:
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: ---%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%ar%fc%?fb
%s%al %ia
%s%al %it
%s%ac%Ia - %It
%al %pc%ar%pt
%pb|6|5|155|
%?pv
%?bp
--- End code ---
Yotto:
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?
blackthunder:
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.
Yotto:
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.
lowlight:
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: ---#define IMG_BUFSIZE ((LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) + (2*LCD_HEIGHT*LCD_WIDTH/8))
--- End code ---
Looks like enough for a background image and 2 other "screens" worth of images.
Navigation
[0] Message Index
[#] Next page
Go to full version