BBjImageManager::loadImageFromFile
Description
In BBj 5.0 and higher, this method loads a BBjImage object from a file.
In BBj 16.0 and higher, the index parameter selects a particular image from a Windows .ico file.
Syntax
Return Value |
Method |
loadImageFromFile(string filename) |
|
loadImageFromFile(string filename,int index) |
Parameters
Variable |
Description |
filename |
Name of the file that contains the image to be loaded. |
index |
For Windows .ico files, this selects a specific image from the file. |
Return Value
Returns the image as a BBjImage object.
Remarks
Use the full path to the file or a file that is in the current directory or PREFIX.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.