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

How to pin an app on the emulator?

1 Answers  


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

0 Answers  


How to save screen from an XNA app?

1 Answers  


Tell me where is the best recommended place to store both static and user-specified configuration information?

0 Answers  


Explain I am getting too many mouse leaves on my custom control.?

0 Answers  






What are the supported codecs for video?

0 Answers  


Explain about windows phone user interface?

0 Answers  


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

0 Answers  


Suppose when I deployed my xna app to the xde, the orientation is in portrait mode, but when I deploy it to a device, it's in landscape mode.?

0 Answers  


How to edit location for weather?

1 Answers  


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

0 Answers  


Explain how to edit locations for local?

0 Answers  






Categories