How do i....
-
how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D
Michael (Up and coming Game programmer) EST
-
how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D
Michael (Up and coming Game programmer) EST
-
how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D
Michael (Up and coming Game programmer) EST
MMaines2005 wrote:
how would i get me Visual C# to load a image i have loaded to a resource files in this script:
If I wanted to, say, load an image from a resource and display it in my PictureBox, I might do this: myPictureBox.Image = Properties.Resources.myImageToDisplay;
It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?
-
how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D
Michael (Up and coming Game programmer) EST
Are you using XNA? If so, here is a handy site you might like to refer to: http://www.xnatutorial.com/[^]
Me: Can you see the "up" arrow? User:Errr...ummm....no. Me: Can you see an arrow that points upwards? User: Oh yes, I see it now! -Excerpt from a support call taken by me, 08/31/2007