locked
Why d2d bitmap don't show after redraw the image source.

    Question

  • I have implemented an app that can pick image file and show it on the screen. And i want to redraw the whole image when i click the redraw button. This works well in windows 8, but not windows 8.1. In win 8.1, when i click the redraw button, it shows me nothing. However the correct image will show when i click the button again. Any suggestion will be appreciated.

    • Edited by hongooboy Wednesday, January 08, 2014 9:36 AM
    Wednesday, January 08, 2014 9:35 AM

All replies

  • Can you please share on your SkyDrive a minimal sample demonstrating the problem?

    It's not clear from your text what the app is doing. How is the app showing the image and what is the app doing in response to the redraw button?

    --Rob

    Thursday, January 09, 2014 1:22 AM
    Owner
  • I use WIC to load the image and create d2d bitmap from the wic bitmap, then draw the d2d bitmap to SurfaceImageSource which was set to xaml image source. When click redraw button, I just redraw the d2d bitmap which was created from wic bitmap. If there is something confused, please tell me.
    Thursday, January 09, 2014 2:13 AM
  • Can you please share on your SkyDrive a minimal sample demonstrating the problem?

    We can't explain why your redraw isn't working without understanding how you are performing the redraw and in what way it doesn't work.

    --Rob

    Thursday, January 09, 2014 10:46 PM
    Owner
  • hi, I have create a demo : http://sdrv.ms/1aWC5Yx  in vs 2013

    I found that, when run the project in simulator with different resolution, it appears different. In my machine, when i set the simulator 10.6'' or lower, it shows white scene when redraw. But when i set higher size, it shows correctly after redraw.


    • Edited by hongooboy Monday, January 27, 2014 5:56 AM
    Tuesday, January 21, 2014 7:19 AM
  • Anyone?
    Sunday, January 26, 2014 1:35 AM