Image.FromFile()
-
I can't seem to find and use the Image.FromFile method. MSDN states that there is this function available and I have already included: using System.Drawing Can anyone help me please? :sigh:
-
I can't seem to find and use the Image.FromFile method. MSDN states that there is this function available and I have already included: using System.Drawing Can anyone help me please? :sigh:
-
Find as in when I type Image myPic = new Image. Intellisense doesn't list FromFile as one of the methods. Anyways, I found out what was going on ;P .Net Compact Framework doesn't support Image.FromFile :doh:
-
Find as in when I type Image myPic = new Image. Intellisense doesn't list FromFile as one of the methods. Anyways, I found out what was going on ;P .Net Compact Framework doesn't support Image.FromFile :doh:
-
Find as in when I type Image myPic = new Image. Intellisense doesn't list FromFile as one of the methods. Anyways, I found out what was going on ;P .Net Compact Framework doesn't support Image.FromFile :doh:
The FromFile method is a static method. Therefore, you do not call it from an instantiation of the object, you call it right from the Class itself. Wrong:
Image myPic = new Image; myPic.FromFile("someFileName");// WRONG
Correct:Image myPic = Image.FromFile("someFileName");// Correct
:)