32Bit image support!
256-MB images only support displaying images at 16 Bits Per Pixel.
For most cases this isn't a problem, but if you're using gradients it may be.
Let me demonstrate with a simple app.
The app just shows an image with a gradient (from red to cyan) and an indication of if we're running in the regular emulator (with 512MB of memory) or the version with 256MB.
Here's what it looks like by default on the 512-MB emulator.
You'll notice the banding of the color in the gradient.
The standard way we'd adjust the app to cope with this would be to configure the app to use 32bits per pixel-which is enough to show the full range of colors in the gradient.
From WMAppManifest.xml:
<App BitsPerPixel="32"
There. Much better. No banding.
But what if we flip over to the other emulator the problem returns.
Oh no. The banding is back. And yes, we have still configured to use 32 BitsPerPixel
But, you may be thinking, perhaps this only affects the emulator.
No. I've tested this on a Nokia Lumia 610 (which is a 256MB device) and the same thing happens there.
So what can we do?
We can dither the image.
Voila. A lot less banding.
Now we can use a gradient image in an app on a 256MB device without banding.
The dithering in the above example was done with the tool from http://adtsai.blogspot.co.uk/2011/03/high-quality-dithering-for-windows.html
On the plus side we can use this same image on 512MB devices without the need for the memory overhead of using 32BPP.
On the negative side the dithered image is larger though.
Presumably, this lack of support for a higher number of bits per pixel, has been done to reduce the amount of memory needed to display graphics and therefore reduce the total memory used by the app.
If you're going to use gradients in your apps this is an important thing to be aware of.
How can I tel whether my device is 256-MB or not? Should run a test or something? What type are Apple's iPhones?
ReplyDelete@Thomas The only Windows Phone devices currently available with 256-MB are the Nokia Lumia 610 and the ZTE Orbit.
ReplyDeleteIf you're still not sure then try installing an app which isn't supported: http://allaboutwindowsphone.com/features/item/14920_What_apps_are_incompatible_wit.php
This is all related to WP7, not iPhone.
Today I received another lack that I did not know about the WP7 256 MB. Cannot Manage the ScheduledActionService used to update live tiles for instance!
ReplyDelete@mareinsula that is documented. See the big yellow Caution box at the top of http://msdn.microsoft.com/en-us/library/hh202942(v=vs.92).aspx
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeletepolo ralph lauren outlet
ReplyDeletejordan 23
cheap jordan shoes
abercrombie outlet
coach outlet
michael kors outlet
lv handbags
cheap oakley sunglasses
chanel outlet
cheap jordans
north face backpacks
kors handbags outlet
goose outlet
uggs
ugg outlet
cheap nfl jerseys from china
authentic louis vuitton handbags
cheap louis vuitton handbags
tory burch outlet
the north face outlet
red bottom heels
hermes outlet
michael kors outlet online
abercrombie & fitch
true religion jeans
ralph lauren uk
louis vuitton handbags
north face jackets
dolce gabbana
lv handbags
adidas shoes
ReplyDeleteralph lauren uk
mizuno running
christian louboutin outlet
toms outlet
kate spade outlet
cheap football shirts
puma outlet store
ray ban sunglasses
cheap ray ban sunglasses
tory burch handbags
fivefingers shoes
north face jackets
chicago blackhawks jersey
snapback hats wholesale
tiffany jewelry
futbol baratas
gucci shoes
nike free
coach factory outlet
marc jacobs
mulberry outlet
hermes birkin
cartier bracelet
north face outlet
foamposite shoes
nba jerseys
longchamp sale
burberry outlet
swarovski uk
gucci shoes
oakley sunglasses
polo ralph lauren outlet
ralph lauren outlet online
pittsburgh steelers jersey
adidas wings
hollister
chanel handbags
chanel outlet
polo lacoste pas cher
0722maoqiuyun
chicago bears, http://www.chicagobearsjerseys.us/
ReplyDeletenobis outlet, http://www.wellensteyn.com.co/
tory burch shoes, http://www.toryburchoutletonline.in.net/
replica watches, http://www.replicawatchesforsale.us.com/
ed hardy shoes,ed hardy,ed hardy clothing,ed hardy shoes for women,ed hardy clothing for men,ed hardy perfume,ed hardy watches
christian louboutin, http://www.scarpelouboutin.it/
ugg outlet store, http://www.uggboots-outlet.co.uk/
nike huarache, http://www.nike-airhuarache.co.uk/
nike air max, http://www.airmax2015.in.net/
ray ban, http://www.occhiali-rayban.it/
louis vuitton bags on sale, http://www.louisvuittonbag.us.com/
nike air max,nike roshe,nike huarache
canada goose outlet, http://www.canadagoose-coats.us.com/
hermes belt for men, http://www.hermesbelts.us/
north face jackets, http://www.thenorthfaceclearances.us.com/
ray ban sunglasses,ray ban sunglasses outlet,ray ban,rayban,ray bans,ray ban outlet,ray-ban,raybans,ray ban wayfarer,ray-ban sunglasses,raybans.com,rayban sunglasses,cheap ray ban
cheap oakley sunglasses, http://www.oakleysunglassesdiscount.us.com/
woolrich clothing, http://www.canadagoosejackets.in.net/
kkkk10 13