[WP7] Quick tip : how to set 32 bits per pixel for your app.

, , 4 Comments

Something new which came with Mango is the ability for the developers to set the number of bits per pixel our app use.

By doing this, your app will have shiny graphics! This increase the color depth and then the gradient are rendered really more smoothly. As expert would say, there is no more banding in your image !

I have found a really great example picture on this web forum to show this :

Forcing your app to use 32 bits per pix is extremly simple to perform trough the WMAppManifest.xml file.

All you have to do is to set the value to 32 using the BitsPerPixel attribute on the App XML element.
Here is an exemple of it in my ConsoTracker WP7 app :
[xml]
<App xmlns="" BitsPerPixel="32" ProductID="{…}" Title="ConsoTracker"
RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal"
Author="Jonathan ANTOINE" Description="Track your usage"
Publisher="ConsoTracker">

</App>
[/xml]

You can find all the possible attributes of the App element on this page : http://msdn.microsoft.com/en-us/library/ff769509(v=vs.92).aspx

Don’t forget to read Peter post on the subject too : http://www.pchenry.com/Home/tabid/36/EntryId/456/Battle-of-the-Bands-with-WP7-and-Image-Banding.aspx.

Thank you Adrien for showing me this tip !

Have fun !

 

4 Responses

    • jmix90

      08/01/2012 20 h 14 min

      Thank you for visiting my blog !

      Your post is nice too. I missed it when I ask Google for this information.

  1. PHenry

    08/01/2012 21 h 28 min

    For you too! Cool blog! And sometimes I get a bit TOO creative with the subject line and Google/Bing miss out on finding me, not their probs, ah well, c'est la vie. haha All's ok. Now that I know about your blog, I have to keep track! Us wp7 have to stick together! Have a good week!

Comments are closed.