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 |
What is windows phone?
where is the best recommended place to store both static and user-specified configuration information?
Why did my phone go into safe mode?
How do I find my downloads on this phone?
Explain how to deserialize json from a rest call?
Explain how to customize front page?
Explain how to play video in isolatedstorage using mediaelement?
Is securestring supported in windows phone?
How to sniff network traffic from the emulator?
I looked through the medialibrary class in xna, and it looks like we can only enumerate through audio, but not video content in the media library?
How to pin an app on the emulator?
Explain how to restart or shutdown my application programmatically?