windows phone 7 - xna wp7-trying to get a texture2d from photoChooser -


in optionmenuscreen user picked poto , pressed mainmenu , playgame.

when i'm trying photo in gameplayscreen after pressing button, null again.

optionsmenuscreen photo = new optionsmenuscreen();         phototexture = new texture2d(screenmanager.graphicsdevice, 50, 50);        phototexture= photo.photorecieved;        phototexture = texture2d.fromstream(screenmanager.graphicsdevice, photo.photoresult.chosenphoto);         photoposition = new vector2(650f, 150f); 

1. have go straight next screen without button or have solution? can make work?
2. how enable user crop picture wishes size define?

help!!! alot

please include code photo chooser; haven't included code issue, why having problem :-)

check haven't disposed photo taken; in scenario can test static variable hold texture between 2 classes.


Comments