开发者

xna how to use a bitmap from photoChooser?

开发者 https://www.devze.com 2023-03-01 14:15 出处:网络
hi i got a bitmapImage from the optionMenuScreen and want to use it in the Ga开发者_StackOverflowmePlayScreen.

hi i got a bitmapImage from the optionMenuScreen and want to use it in the Ga开发者_StackOverflowmePlayScreen. do i have to convert it to texture2d? how? example please... in what class? how can i change the bitmap size or change it after its a texture? thanks


As PhotoResult.ChosenPhoto is a stream, I'd try using Texture2D.FromStream (msdn)

System.Drawing is not supported on the phone.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号