Image dpi, bit depth etc? - Windows Mobile Development and Hacking General

ok developed an app and just decided to use images for buttons.
Made a nice glossy button in photoshop, added to my app and put it on my HTC HD 2 for a test.
Why does the image not look as smooth? like I can see the blend/gradient lines.
Does the dpi have any effect and bit depth? Image was made at 72dpi
Cheers

DPI only comes into play if you print your image. Bit depth might make a difference. I don't know offhand the color bit depth of the HD2's display, but if it isn't the same as your computer's display, your buttons will look different.

yep its the colour depth. PC, i'm using 32bpp where as most phones are at 16bpp.

What language is the pictures being used in? Recently I've found out that C# uses Bilinear image resizing, which means it inserts estimated pixels in with the image when resizing.
Try the following:
1) save the image as a 24 or 32 bit png
2) make the image the same size as the button

I'm using c# and I'm not resizing the image at all.
The other thing i have noted is that if I add a picturebox to my app and set the image to the same one I'm using for my button, again I make sure I display the image at its actual size, it looks better than what it does for the button.
Why is that?
Same image, displayed at actual size looks, better in a picturebox than it does in my custom control?

Related

Today screen color depth?

Why is it that today screen images show up rather poor? They seem to be locked to 16-bit color instead of 32. The original image show up fine in the album but has visible shades when used as today. I read that the Theme Generator (from Microsoft) always locks em to 16-bit. Any ideas? Thanks.
sekinoss said:
Why is it that today screen images show up rather poor? They seem to be locked to 16-bit color instead of 32. The original image show up fine in the album but has visible shades when used as today. I read that the Theme Generator (from Microsoft) always locks em to 16-bit. Any ideas? Thanks.
Click to expand...
Click to collapse
The Magician can only show 16-bit colour i.e. 65536 colours. But I know what you mean about the today screen. I used theme generator and get the impression its using closer to 12 bits.
sekinoss said:
Why is it that today screen images show up rather poor? They seem to be locked to 16-bit color instead of 32. The original image show up fine in the album but has visible shades when used as today. I read that the Theme Generator (from Microsoft) always locks em to 16-bit. Any ideas? Thanks.
Click to expand...
Click to collapse
try to save your wallpaper in .gif 256 clrs 294*320, rename it to Default_stwater.gif and replace the default in /windows dir. Then, reset your today and all be fine!!!
I see. Almost forgot that the screen's only 16-bit. The problem is, the image showed up great on the Album, but displayed poorly when used as today (thru theme generator, image as wallpaper, etc.). GKill, I don't understand what you're talking about, but I'll try it out anyway. Thanks!
sekinoss said:
GKill, I don't understand what you're talking about, but I'll try it out anyway. Thanks!
Click to expand...
Click to collapse
I am talking about replacing the standart windows wallpaper (blue with win. logo) that located in widows dir. This image you cant delete, but it is possible to replace it! TYou must search this .gif file (see above) and copy to your desktop, then open in photoshop. Make own wallpaper and save it with similar dimensions in .gif. Then replace, like I said and you will receive own designed wallpaper as windows default!!!
It is good because it suitable as for portrait, as for landscape modes!
Hey thanks! The pic looked better now but I just realized that today's are limited to 256 colors (GIFs)?? If so then is there any way to display 16-bit pics? Thanks!
sekinoss said:
Hey thanks! The pic looked better now but I just realized that today's are limited to 256 colors (GIFs)?? If so then is there any way to display 16-bit pics? Thanks!
Click to expand...
Click to collapse
Glad to hear this!!!!! :wink:
Do you really want 16 bit??? Heh, but try to notice any difference (withe bare eyes) between your 16 bit unconverted (jpg for examle) and converted 256 colors .gif!!! What do you see??? Yes, it is VERY hard to see ane difference! Man, dont f*ck your brain, girl is better :lol: :lol: :lol:
Could someone help me with this: the gifs have only 256 indexed colours, so if you have a nice picture, like a sunset, the smooth gradient turns into bands or ugly pixels (dithering?). So how cannot one make the difference between a jpg and this horrible gif ? The jpg files are displayed OK in the album view. If I try to set one of these jpgs as desktop image it gets whitish like through a fog. How can I set a sunset without pixels or bands as the "desktop image". It seems so complicated ...Could someone please help ?
Could someone help me with this: the gifs have only 256 indexed colours, so if you have a nice picture, like a sunset, the smooth gradient turns into bands or ugly pixels (dithering?). So how cannot one make the difference between a jpg and this horrible gif ? The jpg files are displayed OK in the album view. If I try to set one of these jpgs as desktop image it gets whitish like through a fog. How can I set a sunset without pixels or bands as the "desktop image". It seems so complicated ...Could someone please help ?
kelu said:
Could someone help me with this: the gifs have only 256 indexed colours, so if you have a nice picture, like a sunset, the smooth gradient turns into bands or ugly pixels (dithering?). So how cannot one make the difference between a jpg and this horrible gif ? The jpg files are displayed OK in the album view. If I try to set one of these jpgs as desktop image it gets whitish like through a fog. How can I set a sunset without pixels or bands as the "desktop image". It seems so complicated ...Could someone please help ?
Click to expand...
Click to collapse
When converting in photoshop, set dithering options to "off" (no dither). remember that display in Magician is 65K. This means maximum colour depth is 16 bit. In any case, I'm using the 256 .gif pics with beautiful landscapes and it looks great! If you want, I can post here one...

Question about Today Backgrounds

I've recently been playing around with my today backgrounds, however, they are never as clear as the original picture.
I used someones .cab theme with a new background and the image was very clear, but when I just change the standard themes background to a different image, it loses it's clarity.
Whats up with this and is there a way to fix it?
Also, how do I get .exe programs to load on my unit. The only files I can get to install are cab files.
Thanks
Is the image the correct resolution?
If not, it will stretch or shrink it, and that's a quick and dirty operation on the today screen rather than being done with something like photoshop where it would calculate the pixel mapping of the resized image to give better quality.
actually..
I believe what he is talking about occurs only when selecting an individual image as the background wallpaper and it appears with what looks like a somewhat transparent "white haze". I have not figured out what causes this, and the only way to "fix" it would be to use a theme generator with the image you want as the background. If done this way, the image looks fine. This has nothing to do with aspect ratio distortion.

Unsharp Manila background degrades the whole home screen appearance

I might have missed this in another thread but could not locate it.
Why on Earth is the Manila home screen background so terribly unsharp?? I've tried images of all sorts of resulotions, the outcome is always the same.
It does not scale the images, it seems to be the exact size, but the backgrounds are ALWAYS unsharp...
Can anyone confirm this, and does anybody know how to fix this??
Try viewing a 480x800 image in the album view, 100% sharp. Then set it as home screen, and it looks more like a stretched, compressed 240x400 image. I never noticed this on my Diamond. Is this one of the "software optimizations" HTC talks about? That's a no brainer, making a device faster by reverting to low res images...
IMage on background
FOr now I dont have any problem with images on background. Everything is sharp, even contacts are great. Not sure what the problem is there
wfhowell said:
FOr now I dont have any problem with images on background. Everything is sharp, even contacts are great. Not sure what the problem is there
Click to expand...
Click to collapse
no he is correct. the wallpaper isnt sharp at all
nin2thevoid said:
I might have missed this in another thread but could not locate it.
Why on Earth is the Manila home screen background so terribly unsharp?? I've tried images of all sorts of resulotions, the outcome is always the same.
It does not scale the images, it seems to be the exact size, but the backgrounds are ALWAYS unsharp...
Can anyone confirm this, and does anybody know how to fix this??
Try viewing a 480x800 image in the album view, 100% sharp. Then set it as home screen, and it looks more like a stretched, compressed 240x400 image. I never noticed this on my Diamond. Is this one of the "software optimizations" HTC talks about? That's a no brainer, making a device faster by reverting to low res images...
Click to expand...
Click to collapse
I have the same problem !!
Pictures in Album looks great but on wallpaper not ! I dont know why
Can anybody else confirm that the diamond did not have this problem? could there be some setting to change or to port from the diamond manila?
Its because the larger screen size decreases pixel density at 480x800 resolution. Where as the tiny 2.8" screen on the diamond and pro have a higher pixel density. You have more resolution spread over a larger space. Just look at an iphone images aren't that sharp.
I have no problem with the image quality on the homescreen background.
utvol06 said:
Its because the larger screen size decreases pixel density at 480x800 resolution. Where as the tiny 2.8" screen on the diamond and pro have a higher pixel density. You have more resolution spread over a larger space. Just look at an iphone images aren't that sharp.
I have no problem with the image quality on the homescreen background.
Click to expand...
Click to collapse
No, you dont have right. Tell me why picture in album looks great (very sharp and clear) and this same file looks terrible on the homescreen background...
For the Today Screen:
Programs > Pictures & Videos > menu > Set as Today Background
Set Transparency Level to 0%
​
That's for the today screen... What about the TF3D home screen? Two different images. I think the OP was talking about the touchflow screen.
i can confirm and many of us also
in can confirm that images viewed with album or whatelse are very good. but when setted in tf3d homescreen background images of differents resolutions are terribles..
darthbane2k said:
no he is correct. the wallpaper isnt sharp at all
Click to expand...
Click to collapse
yes same thing here
Shoot me down if I've got this wrong
I was getting the same thing when I first attempted to change the wallpaper, BUT I'd made a basic error and just "Saved As" the thumbnails instead of properley clicking and downloading the correct sized file.
Just a possibility.
jackthekayman said:
yes same thing here
Click to expand...
Click to collapse
same thing here also!!!
I don't think it is an issue with resolution. It seems like the image has been converted to another format and lost some image quality. See the attached jpeg for a comparison between the two.
When you choose a wallpaper does it get saved somewhere? If it did you could check it to see whether it's been altered in anyway from the original.
elmarko99 said:
I don't think it is an issue with resolution. It seems like the image has been converted to another format and lost some image quality. See the attached jpeg for a comparison between the two.
When you choose a wallpaper does it get saved somewhere? If it did you could check it to see whether it's been altered in anyway from the original.
Click to expand...
Click to collapse
You may be able to see more of the wallpaper in this image...
Maybe this is an optimisation performed to reduce the memory overhead for the TF3D process by reducing the quality of the image.
You can guarantee that if HTC's software didn't do this then someone somewhere would have assigned a 4MB jpeg as their background image and then be complaining about a lack of memory, sluggish performance etc.
I found out what manila does with our backgrounds, it reduces it's resolution.
When you save a background (resolution 480x800), manila saves it as the file "HomeBackground.img" in your windows folder and uses it for your background. I copied this file back to my computer and changed the extension back to HomeBackground.jpg (I can't open *.img on my pc). This picture has a resolution of 307x512 !!!
So that's the reason why our backgrounds get this low quality look
Like i mentioned in another thread, changing your original 480x800 picture to HomeBackground.img and placing it in your windows folder doesn't solve the problem
I've put 2 files as attachement: original pic and the "manila-pic"
stu420 said:
I found out what manila does with our backgrounds, it reduces it's resolution.
When you save a background (resolution 480x800), manila saves it as the file "HomeBackground.img" in your windows folder and uses it for your background. I copied this file back to my computer and changed the extension back to HomeBackground.jpg (I can't open *.img on my pc). This picture has a resolution of 307x512 !!!
So that's the reason why our backgrounds get this low quality look
Like i mentioned in another thread, changing your original 480x800 picture to HomeBackground.img and placing it in your windows folder doesn't solve the problem
I've put 2 files as attachement: original pic and the "manila-pic"
Click to expand...
Click to collapse
Good find. I wonder if it'll be possible to make manila use full resolutions pics. what happens when you place an image named HomeBackground.img into the windows folder? Does it resize it or just not open at all?
This may be related to the work to get a 512x512 image on the background, or am I misunderstanding?
http://wiki.xda-developers.com/index.php?pagename=HTC_Blackstone_Custom
(near the end of the page)
elmarko99 said:
Good find. I wonder if it'll be possible to make manila use full resolutions pics. what happens when you place an image named HomeBackground.img into the windows folder? Does it resize it or just not open at all?
Click to expand...
Click to collapse
it resizes it and placing HomeBackground.jpg in the windows folder doesn't work at al

Samsung Vibrant Wallpapper Expanded?

I just recently bought a Samsung vibrant from t-mobile and i want to set a background of a photo. At first it tells me to crop a certain part of the photo then expands it and looks all pixelated. I searched around and theres this app called "wallpaper set and save" which didnt set the whole image as the background. is there any way of setting a full image as a background and the phone auto adjusts?
jhuynh92 said:
I just recently bought a Samsung vibrant from t-mobile and i want to set a background of a photo. At first it tells me to crop a certain part of the photo then expands it and looks all pixelated. I searched around and theres this app called "wallpaper set and save" which didnt set the whole image as the background. is there any way of setting a full image as a background and the phone auto adjusts?
Click to expand...
Click to collapse
Android lets you crop the picture when it's too big. If you touch the edges of the crop square, and drag it out, you can change the size of the cropped area, you might be able to drag it out all the way to encompass the entire image. Also, it shouldn't be pixellating the image unless the resolution is way low, like 170x200 low.
raduque said:
Android lets you crop the picture when it's too big. If you touch the edges of the crop square, and drag it out, you can change the size of the cropped area, you might be able to drag it out all the way to encompass the entire image. Also, it shouldn't be pixellating the image unless the resolution is way low, like 170x200 low.
Click to expand...
Click to collapse
if u want them to fit PERFECT the Image has too be 960x800 i will be makin wallpapers so stay tuned -----here are some of my other i tweaked for the MT3g & Nexus but i was making the nexus 50 pixels larger instead of 960x800 i was making them 960 x850
http://picasaweb.google.com/neffstarr
the image is bigger than the full crop window. so when i try to crop it it crops half the photo and expands it to fit the full screen therefore making it pixelated. its a photo that wasnt taken by the phone btw.
I'm having the same problem. I downloaded some 480x800 wallpapers and when I try to set the wallpaper, it asks me to crop part of the image and does not let you encompass the whole the thing. How are you supposed to set the wallpaper?
As stated above, make the image 960*800.
-bZj
_____
-sent from my Samsung Vibrant via XDAapp
Ahhh, I see. It works now, thanks a lot!
I still find the whole cropping thing a pain. I had images set at 960X800 but the cropping tool never lets me select it properly. I either end up with a small black band at the top and bottom or I have to under size it. I found this on the Market that lets you just set the image without cropping and it works on the Vibrant: "Application Utility".
Alakar said:
I still find the whole cropping thing a pain. I had images set at 960X800 but the cropping tool never lets me select it properly. I either end up with a small black band at the top and bottom or I have to under size it. I found this on the Market that lets you just set the image without cropping and it works on the Vibrant: "Application Utility".
Click to expand...
Click to collapse
Then you're doing it wrong.
960 wide
800 tall
crop to 100%
done.
-bZj
i have yet to crop anything and have a wide array of resolutions so far. Wallpaper set and save. get it.

[Q] color control...

just picked up the tab about an hour ago, and just started playing with it... so far, so good
the one thing that stuck out at me so far is the color... it's at least 300-500K too warm, and waaaaaay to vibrant...
is there anyway to tone it down a bit ?
I couldn't find a way to adjust/calibrate the color on the device. I wanted my photos to look correct ... so I created an action in Adobe Photoshop that correctly adjusts the photos before I download them to the SGT 10.1.
Below is a copy of a post I made on the post processing forum on fredmiranda.com:
A little work allowed me to create a Photoshop action that will take images from my normal calibrated NEC 2690 work environment and apply a transform that preps them for use on the Galaxy Tab 10.1. In case anyone needs to get images looking good on a tablet, here is what worked for me.
In Photoshop, I created three adjustment layers.
1. Hue/Saturation - Reduced saturation (this was to overcome the highly saturated LCD on the Samsung).
2. Curves - I adjusted the individual RGB channels in the curves adjustment layer to get the right color balance on the tablet.
3. Exposure/Gamma - I reduced the exposure slightly and adjusted the gamma value to offset the gamma on the tablet.
Then resized the image for the small screen and applied appropriate sharpening.
I standardized on using sRGB for output. I left the original images intact ... this action can be used to create a a custom set of images for display on the tablet.
The good news ... I ended up with a beautiful tool for sharing images.
UCSB said:
I couldn't find a way to adjust/calibrate the color on the device. I wanted my photos to look correct ... so I created an action in Adobe Photoshop that correctly adjusts the photos before I download them to the SGT 10.1.
Below is a copy of a post I made on the post processing forum on fredmiranda.com:
A little work allowed me to create a Photoshop action that will take images from my normal calibrated NEC 2690 work environment and apply a transform that preps them for use on the Galaxy Tab 10.1. In case anyone needs to get images looking good on a tablet, here is what worked for me.
In Photoshop, I created three adjustment layers.
1. Hue/Saturation - Reduced saturation (this was to overcome the highly saturated LCD on the Samsung).
2. Curves - I adjusted the individual RGB channels in the curves adjustment layer to get the right color balance on the tablet.
3. Exposure/Gamma - I reduced the exposure slightly and adjusted the gamma value to offset the gamma on the tablet.
Then resized the image for the small screen and applied appropriate sharpening.
I standardized on using sRGB for output. I left the original images intact ... this action can be used to create a a custom set of images for display on the tablet.
The good news ... I ended up with a beautiful tool for sharing images.
Click to expand...
Click to collapse
thanks
i guess that's the workaround...
not sure i like having to work around the color issue, but i guess it's better then sitting in front of a booker explaining why the model looks like she just took a bath in orange juice
I think turning off Auto adjust screen power in the screen settings helps the reds a little. There is also an app in the market that will let you adjust the RGB but for the life of me I can't remember what it is called. I uninstalled it because it made the launcher laggy but other than that it worked OK.
Found it: color filter service is the app. Its 99 cents.
jtseidner said:
Found it: color filter service is the app. Its 99 cents.
Click to expand...
Click to collapse
will definitely try this app...
rgb controls would be ideal, and will allow me to use a colorimeter...
thanks

Categories

Resources