Mohammed Elrasheed
Mohammed Elrasheed

Reputation: 93

Saving writeablebitmap to a JPG in silverlight

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

Upvotes: 0

Views: 2207

Answers (1)

Dany
Dany

Reputation: 2174

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);

Upvotes: 2

Related Questions