Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is there a way to know if my code is running on emulator or device?

926


Where is httputility class, since there is no system.windows.browser namespace?

1071


Tell me is it possible to use custom pixel shader in xna?

895


Explain how to save silverlight uielements into an image?

840


Explain how to edit locations for local?

970


Can I turn off some of my local papers?

909


Explain about windows phone web browser?

1070


What is windows phone bluetooth?

1055


Explain how to send suggestions on how to better the app to the ap?

834


Explain how to sniff network traffic from the emulator?

915


What is safety mode on my phone?

894


Is there any internal page notification that it receives to detect a phone call?

927


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?

894


Explain how to get the geolocation data on a picture?

951


How to play two mediaelements at once?

897