Answer Posted / diana
Texture2D has a SaveAsJpeg method and a SaveAsPng method. Be aware that Zune does not sync pngs, so saveasjpeg is recommended
In April's CTP, you could try:
MediaLibrary library = new MediaLibrary(); library.SavePicture(“My Picture”, streamToJpegData); // You can use this from inside a Silverlight app provided you have the ID_CAP_MEDIALIB capability. // You do have to make sure the Stream you pass in contains JPEG file data, but otherwise it should work for you.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is securestring supported in windows phone?
Does the web browser control share the ie cache?
What is windows phone bluetooth?
How to identify a device or a user?
Can we control the web browser controls zoom?
Explain starting with april ctp refresh, I can compile and debug my xna game, but it does not show up in list of applications when I am not launching it on thedebugger?
In my code the method marked by [ondeserialized] is never called after deserialization. Is this a known issue?
Some images look different when synced to the device and read programmaticaly. Do decoders change these?
Tell me is there an api for retrieving information on the files located in the store? I am looking to check when it was last written?
How to customize front page?
Is it temporary that the control styles are included in app.xaml?
Will texttrimming property be available on textblock?
I looked through the medialibrary class in xna, and it looks like we can only enumerate through audio, but not video content in the media library?
How to get the geolocation data on a picture?
Tell me where is httputility class, since there is no system.windows.browser namespace?