System.Drawing.Bitmap.Bitmap C# (CSharp) Method

Bitmap() public method

public Bitmap ( string filename ) : AppKit
filename string
return AppKit
        public Bitmap(string filename)
        {
            if (filename == null)
                throw new ArgumentNullException ("Value can not be null");

            try
            {
                // Use Image IO
                dataProvider = new CGDataProvider(filename);
                if (dataProvider == null)
                    throw new FileNotFoundException ("File {0} not found.", filename);

                InitializeImageFrame (0);
            }
            catch (Exception exc)
            {
                throw new FileNotFoundException ("File {0} not found.", filename);
            }
        }

Same methods

Bitmap::Bitmap ( Image image ) : AppKit
Bitmap::Bitmap ( Image original, Size newSize ) : AppKit
Bitmap::Bitmap ( Image original, int width, int height ) : AppKit
Bitmap::Bitmap ( Stream stream, bool useIcm ) : AppKit
Bitmap::Bitmap ( int width, int height ) : AppKit
Bitmap::Bitmap ( int width, int height, PixelFormat format ) : AppKit