How to save screen from an XNA app?

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


Please Help Members By Posting Answers For Below Questions

Tell me can I open sockets in windows phone?

513


How to play video in isolatedstorage using mediaelement?

492


Where is xmldocument class?

483


Explain how to identify a device or a user?

522


Tell me is securestring supported in windows phone?

527






Suppose I have lost one of the application templates in visual studio 2010. It's available in the file system but not in visual studio... Any ideas?

517


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

493


Can I reorder the tabs?

584


Is .bmp format supported?

526


Is it possible to run two instances of emulator on the same machine. I am doing some networking app and need two emulators to test it?

472


Explain how to dismiss the sip programmatically?

521


What is windows phone web browser?

618


Explain about windows phone bluetooth?

591


Tell me is it possible to run two instances of emulator on the same machine. I am doing some networking app and need two emulators to test it?

478


Explain does the web browser control share the ie cache?

537