0
private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");

as a datamember to a class?
Can I just not assign Bitmaps as members?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Zinderin
1
private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");

as a datamember to a class?
Can I just not assign Bitmaps as members?

Try ...

private Bitmap _picture = new Bitmap(@"C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg", true);

Note the added true argument, and that I dropped the "<" and ">".

Edited by Zinderin: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.