0

I have a writeablebitmap object that I would like to save to JPG in silverlight , how can I do that?

  • 1
    Possible duplicate: [How can i convert WriteableBitmap to jpg or some other common format?](http://stackoverflow.com/questions/4683276/how-can-i-convert-writeablebitmap-to-jpg-or-some-other-common-format) – StaWho Apr 16 '13 at 20:14
  • 1
    Use ImageTools for sl http://imagetools.codeplex.com/ – Davut Gürbüz Apr 17 '13 at 06:08

1 Answers1

2

I am also converting writeablebitmap object into image as

WriteableBitmap bitmap = new WriteableBitmap(Width,Height);

//Some operation of drawing on bitmap

and then

Image imageFHR = new Image();
 imageFHR.Source = bitmap;
 imageFHR.Height = Height;
 imageFHR.Width = Width;
 myCanvas.Children.Add(imageFHR);
Dany
  • 2,034
  • 8
  • 34
  • 54