Is it possible to load image to XNA game from user computer? For example, I want to load “C:\Images\Box.png” to sprite texture. Is it possible? If yes, how?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In XNA 4.0 use
Texture2D.FromStreamIf you’re using XNA before 4.0 then you can use
Texture2D.FromFile.