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 |
Explain how to detect the resolution of my device?
How to access the liveid credentials a user has entered into the device?
Tell me Will TextTrimming property be available on TextBlock?
The MarketPlace Launchers overloads for Show has parameters, what are these?
Tell me is it possible to use custom pixel shader in xna?
Suppose my site is down, and async calls are taking too long to timeout. How can I set a reasonable timeout?
How to change language settings?
Explain how the volume work between apps and hardware buttons on the device?
Can we intercept the search button to do an app specific search?
Tell me is it temporary that the control styles are included in App.xaml?
Tell me in my code the method marked by [ondeserialized] is never called after deserialization. Is this a known issue?
Suppose I am hitting System.InvalidOperationException in the Navigate method of the WebBrowserControl. What gives?