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 |
Suppose I am trying to receive toast notifications in emulator app. I got everything setup but notification does not show up in emulator at all?
How to access the liveid credentials a user has entered into the device?
How to detect the resolution of my device?
Explain where is xmldocument class?
Explain how to restart or shutdown my application programmatically?
Can you please explain the best way to detect that I am in design-mode in expression blend or visual studio?
Explain about windows phone web browser?
Can we control the web browser controls zoom?
Explain how to change language settings?
Can I write multi-player games using wi-fi or blue tooth in the device.?
Is there any internal page notification that it receives to detect a phone call?
Explain how to dismiss the sip programmatically?