Method XbpBitmap():loadFile() Foundation

Loads an image file from disk

Syntax
:loadFile( <cImageFilename> ) --> lSuccess
Parameters
<cImageFilename>
<cImageFilename> is a character string containing the name of a graphic image file to be loaded.
Return

This method returns .T. (true) when the image could be loaded, otherwise it returns .F. (false).

Description

The :loadFile() method loads an image which is not linked as a resource to the executable file but is stored in an external image file. Different image file formats are detected automatically from the file header. The following file formats are supported:

Image file formats
Format Description
BMP Bitmap image
GIF Graphics Interchange Format
JPEG Joined Photographic Experts Group
PNG Portable Network Graphics
DNG Digital Negative
JPEGXR Jpeg Extended Range
TIFF Tagged Image File

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.