How to save screen from an XNA app?



How to save screen from an XNA app?..

Answer / 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

More Windows Phone OS Interview Questions

is there a way to know if my code is running on emulator or device?

0 Answers  


How to play two mediaelements at once?

0 Answers  


Tell me is it temporary that the control styles are included in App.xaml?

1 Answers  


Some images look different when synced to the device and read programmaticaly. Do decoders change these?

0 Answers  


In my code the method marked by [ondeserialized] is never called after deserialization. Is this a known issue?

0 Answers  






Can I turn off some of my local papers?

0 Answers  


Explain how to play two mediaelements at once?

0 Answers  


What do you know about Windows Phone Media support?

1 Answers  


What happens to isolatedstorage when app is uninstalled?

0 Answers  


Tell me is securestring supported in windows phone?

0 Answers  


What is windows phone?

0 Answers  


Tell me are there api's to read rss/atom feeds?

0 Answers  






Categories