public static FromFile ( string fileName ) : |
||
fileName | string | File name to load bitmap from. |
return |
The method is provided as an alternative of System.Drawing.Image.FromFile(string) method to solve the issues of locked file. The standard .NET's method locks the source file until image's object is disposed, so the file can not be deleted or overwritten. This method workarounds the issue and does not lock the source file.
Sample usage:
Bitmap image = AForge.Imaging.Image.FromFile( "test.jpg" );
public static FromFile ( string fileName ) : |
||
fileName | string | File name to load bitmap from. |
return |