This message was edited by anthrax11 at 2006-9-27 11:45:41
: Hi,
:
: Thanks for your respond. Yes, u r right. I still got error (even more error) when I change the code to call the file by full path. But, maybe the way of calling the file is not correct. This is what I changed:
: Instead of --> Bitmap bp = new Bitmap("1stImage.Jpeg");
:
: I changed to --> Bitmap bp = new Bitmap("C:\Documents and Settings\Administrator\Desktop\desktop1\LabM.V\Xprmnt2\Resultxprmnt2\Agent1\bin\Debug\1stImage.Jpeg");
:
: And I got this type of solution about generic error in GDI+ from this website:
:
:
http://www.syncfusion.com/FAQ/aspnet/WEB_c27c.aspx#q563q
:
: I'm stuck now. Any body have idea? I really need hint now. Thanks.
:
:
Try changing the path to: "C:\\Documents and Settings\\Administrator\\Desktop\\desktop1\\LabM.V\\Xprmnt2\\Resultxprmnt2\\Agent1\\bin\\Debug\\1stImage.Jpeg"
This ensures, that the compiler doesn`t assume the "\" to be a whitespace character. For example, "\r\n" means a newline to a windows compiler.
http://msdn2.microsoft.com/en-us/library/e9a023cx.aspx
http://picasso.cs.qc.edu/whitespace.html
EDIT:
Btw, I have no experience with C#, but shouldn`t you load a bmp file with that function(not a jpeg) as the name suggests ("new Bitmap")?