MultiResolutionImage for Windows Phone 8.0 with screen resolution 1080p

4 posts, 1 answers
  1. Ankit
    Ankit avatar
    2 posts
    Member since:
    Oct 2011

    Posted 17 Nov 2014 Link to this post

    Hi I am developing Windows Phone 8.0 App for all resolution.
    Now from the this link Multi-resolution apps for Windows Phone 8 there are 4 resolution for Windows Phone 8.0 .
    from this link of telerik Telerik UI for WindowsPhone : RadMultiResolutionImage there is code like this 

    Image.Screen-WVGA.png - the image that will be used for the WVGA resolution (480x800)
    Image.Screen-720p.png - the image that will be used for the 720p resolution (720x1280)
    Image.Screen-WXGA.png - the image that will be used for the WXGA resolution (768x1280)

    Now , there is no specification for resolution 1080 x 1920 . I have tried Image.Screen-1080p.png but it is not working.

    Please reply ,
    Thank You.




  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 20 Nov 2014 Link to this post

    Hello,

    The MultiResolutionImage control internally checks the scale factor of the application to determine which image to use. As you can see in the Multi-resolution apps for Windows Phone 8 article the scale factor for 720p and 1080p is 1.5x, so in this case the Image.Screen-720p.png ​will be used both for 720p and 1080p resolutions. 

    I hope this helps. Let me know should you need further assistance.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Ankit
    Ankit avatar
    2 posts
    Member since:
    Oct 2011

    Posted 23 Nov 2014 in reply to Ivaylo Gergov Link to this post

    Hi Thanks for reply.
    And yes I know size of resolution 720p and  1080p are same and also WVGA and WXGA are same but still we put Image.Screen-WVGA.png and Image.Screen-WXGA.png  in same folder for resolution WVGA and WXGA. Am I right? So we should also put Image.Screen-720p.png  for 720p Resolution and Image.Screen-1080p.png like for 1080p resolution?
    I have tried with Image.Screen-1080p.png Image with same size as 720p Image and without this Image , in both the cases App is crashed for 1080p Resoltuion but when I cheched for other resolution like 720p, WVGA or WXGA in all cases it works nice. So for 1080p Resolution What to do?
    As per TELERIK Image.Screen-WVGA.png - the image that will be used for the WVGA resolution (480x800)
    Image.Screen-720p.png - the image that will be used for the 720p resolution (720x1280)
    Image.Screen-WXGA.png - the image that will be used for the WXGA resolution (768x1280)bellowed names are use for respective resolution and must be put in single folder and at xaml side we have just give source as "/FolderName/Image.png" 
     
    Image.Screen-WVGA.png - the image that will be used for the WVGA resolution (480x800)
    Image.Screen-720p.png - the image that will be used for the 720p resolution (720x1280)
    Image.Screen-WXGA.png - the image that will be used for the WXGA resolution (768x1280)
    So my question is what is name should be given to image for resolution 1080p??


  5. Answer
    Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 24 Nov 2014 Link to this post

    Hi,

    I was trying to explain that the Telerik RadMultiResolutionImage control selects which image to use based on the returned scale factor. The WVGA resolution does not have scale factor and returns 1x, the WXGA resolutions has 1.6x scale factor, the 720p as well as 1080p have 1.5x scale factor. This means that on both 720p and 1080p resolutions our control will select the Image.Screen-720p.png.
    I have tested this on 1080p emulators and also on a Nokia Lumia 1520 and it works as described. I have attached the sample project to demonstrate. 
    Could you please take a look and tell if this works on your side too? If not, could you please elaborate on which device the picture is not shown?

    I am looking forward to your reply.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner