Share image in windows phone and windows 8.1 apps RRS feed

  • Question

  • I want to share an image in my app . I just have have an image in my xaml whose source is set at runtime by making canvas as bitmap.I want to share that image whose source is set at runtime.

    private async void Button_Click(object sender, RoutedEventArgs e)
            var renderTargetBitmap = new RenderTargetBitmap();
            await renderTargetBitmap.RenderAsync(canvas);
            myImg.Source = renderTargetBitmap;

    This example share an image from installed location , How do I modify that to share my image?

    Need Help.

    Sunday, July 20, 2014 10:45 AM


All replies

  • So basically you want to share this canvas. Or is it your image is just getting rendered on canvas but you want to share the image and not the canvas?

    -----------------\\\\ | ANUBHAV RANJAN |>>>> -----------------////

    Sunday, July 20, 2014 2:40 PM
  • I just want to share the canvas as image in windows phone 8.1 app .
    Sunday, July 20, 2014 3:55 PM
  • For this you will have to save that Canvas as image and then share it. Refer a related post Windows 8 Save CANVAS as IMAGE WinRT Metro App C#

    -- Vishal Kaushik --

    Please 'Mark as Answer' if my post answers your question and 'Vote as Helpful' if it helps you. Happy Coding!!!

    Sunday, July 20, 2014 4:41 PM