SetBackPictureFromFile method |
|
Remarks
Sets a background picture from a graphic file.
Syntax
[Visual Basic] Public Function SetBackPictureFromFile ( strPathname as String, nMode as enumBitmapModes ) as enumWanErrorCodes |
[C#] public enumWanErrorCodes SetBackPictureFromFile ( string strPathname, enumBitmapModes nMode ); |
[C++] public: enumWanErrorCodes SetBackPictureFromFile ( string strPathname, enumBitmapModes nMode ); |
Parameter |
Description |
|||||||||||||||
|
|
|||||||||||||||
strPathname |
Absolute pathname of the picture file to load. Accepted graphic formats are BMP, JPEG, GIF, TIFF and PNG. An empty pathname will reset an eventual picture set through a previous call to this method. |
|||||||||||||||
nMode |
Bitmap mode. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumWanErrorCodes.ERR_WAN_NOERROR (0) |
The method call was successful. |