Skip to main content
Microsoft Silverlight
Home Forums General Silverlight New Features in Silverlight 3 Convert writableBitmap to jpeg using FJCore in SL3 RTW
4 replies. Latest Post by jkonline on August 25, 2009.
(0)
TomGiam
Participant
852 points
246 Posts
07-10-2009 10:24 AM |
Anybody figured out how to convert a Writablebitmap to a jpeg using JFCore?
I want to save it to disk or send it to the server.
Thanks
Tom
07-11-2009 10:07 AM |
I can now convert any UIElement to PNG and save to the local computer.
Note that: images need to be from the same domain as the SL application is launched from.
I would appreciate it if someone can show me how to do the same with JPG.
It should be possible with FJCore or some other jpeg encoder.
Most of the information and associated files came from here:
http://www.andybeaulieu.com/Home/tabid/67/EntryID/161/Default.aspx
{
FilterIndex = 1
};
imageData.SetPixel(x, y,
(
);
}
stream.Write(binaryData, 0, binaryData.Length);
stream.Close();
sebschmitt
Member
20 points
24 Posts
07-18-2009 4:28 PM |
I'm also interested in the answer to Tom's question (how to convert writeableBitmap to jpeg with FJCore). Any solutions so far?
07-18-2009 4:40 PM |
Found the solution here: http://stackoverflow.com/questions/1139200/using-fjcore-to-encode-silverlight-writeablebitmap
jkonline
2 points
4 Posts
08-25-2009 3:39 AM |
This blog post outlines how do do it.
http://blog.blueboxes.co.uk/2009/07/21/rendering-xaml-to-a-jpeg-using-silverlight-3/