Method Load
Load(string, BitmapType)
Loads an image from a file or resource.
public virtual bool Load(string url, BitmapType type = BitmapType.Any)Parameters
- urlstring
- Path to file or url with the image data. 
- typeBitmapType
- One of the BitmapType values 
Returns
- bool
- trueif the operation succeeded,- falseotherwise.
Remarks
Note: Not all values of BitmapType enumeration may be supported by the library and operating system for the load operation.
Load(Stream, BitmapType)
Loads an image from an input stream.
public virtual bool Load(Stream stream, BitmapType type)Parameters
- streamStream
- The Stream from where the image will be loaded. 
- typeBitmapType
- One of the BitmapType values 
Returns
- bool
- trueif the operation succeeded,- falseotherwise.
Remarks
Note: Not all values of BitmapType enumeration may be supported by the library and operating system for the load operation.