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

Tell me can I turn off some of my local papers?

1 Answers  


How to save Silverlight UIElements into an image?

1 Answers  


Explain how to detect if my application is exiting so I can save state?

0 Answers  


Explain about the windows phone?

0 Answers  


How to detect the resolution of my device?

1 Answers  






How to access the liveid credentials a user has entered into the device?

0 Answers  


Explain how to save silverlight uielements into an image?

0 Answers  


How do I find my downloads on this phone?

0 Answers  


Why did my phone go into safe mode?

0 Answers  


Can I write multi-player games using wi-fi or blue tooth in the device.?

0 Answers  


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

0 Answers  


What content can I share/save?

1 Answers  


Categories