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 is it possible to use custom pixel shader in xna?

0 Answers  


Is asp.net forms authentication supported?

0 Answers  


What is windows phone web browser?

0 Answers  


Explain does the web browser control share the ie cache?

0 Answers  


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

0 Answers  






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

0 Answers  


What are temporary files on my phone?

0 Answers  


The MarketPlace Launchers overloads for Show has parameters, what are these?

1 Answers  


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

0 Answers  


What is Send to AP and who gets it?

1 Answers  


Tell me are there canned mvvm "data behaviors" planned for wp7?

0 Answers  


How to dismiss the SIP programmatically?

1 Answers  


Categories