0
中獲取一個texture2d在我的選項菜單屏幕中,用戶選擇了一個poto,然後再次按下mainMenu然後playGame。xna wp7-試圖從photoChooser
當我試圖在按下後退按鈕後在gamePlayScreen中獲得照片時,它再次爲null。
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.我必須直接進入下一個屏幕沒有後退按鈕,或者你有另一種解決方案嗎?我能做些什麼來使它工作?
2.如何讓用戶根據自己希望的尺寸裁剪圖片?
幫助!!! 非常感謝
[xna wp7如何讓用戶裁剪他的照片]的可能重複(http://stackoverflow.com/questions/5847081/xna-wp7-how-to-let-the-user-crop-his-photo ) – 2011-05-02 15:30:44