I have a writeablebitmap object that I would like to save to JPG in silverlight , how can I do that?
Asked
Active
Viewed 2,197 times
0
-
1Possible 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
-
1Use ImageTools for sl http://imagetools.codeplex.com/ – Davut Gürbüz Apr 17 '13 at 06:08
1 Answers
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
-
Thanks alot :),I have also used an extension method from ImageTools library to do so – Mohammed Elrasheed Apr 18 '13 at 14:20