0
      EDITED

Here is a detailed descrption...

I have four buttons, first button uses fileOpenPicker and selects an image and displays on a image control

second button, will capture the image using CamerCaptureUi .. and displays the photo on the same image control...

Third button is to edit the image.. When I click on this button Aviary SDK will be initialized, I will edit my image.

The edited image will be displayed on a new image control (say Img2).

using the fourth button, I have to save this edited image[img2]. I used filesavepicker, but no where I'm passing the control name img2 or its source.

Please help !!

Keren Caelen
  • 1,466
  • 3
  • 17
  • 38
Ravindra
  • 21
  • 3

1 Answers1

0

You can use the FileSavePicker class to choose a destination for your file. When you have the destination, use the methods of FileIO (WriteBytesAsync for instance) to write the contents of the file.

Patrick
  • 17,669
  • 6
  • 70
  • 85
  • Patrick: I Used FileSavePicker, I gave my destination folder, i defined the formats did everything... but all i'm saving is a blank image.. I'm no where passing the image control name in the filesave picker code... could you please post a sample code, on how to save a static image which is already displayed on a image control !!! Would be helpful – Ravindra Jun 06 '13 at 10:21
  • Did you use a memorystream when saving? What size is the blank image? Is it saved with zero bytes? – Patrick Jun 06 '13 at 12:15
  • No.. I haven't used any memorystream... the size is 0 bytes – Ravindra Jun 06 '13 at 12:38
  • What are you doing then? How do you get the image and saving it? – Patrick Jun 08 '13 at 20:21
  • I used fileSavePicker without memoryStream. I'm getting a blank image. I don't know where to pass the image control [img2] Need help !! – Ravindra Jun 09 '13 at 03:08
  • The image that i'm getting after the editing is a writableBitMap ... How do i save this image... – Ravindra Jun 29 '13 at 08:07
  • Does this help? http://stackoverflow.com/questions/7378946/saving-bitmap-as-png-on-wp7 – Patrick Jul 05 '13 at 22:39