LoadBitmap function

Official Content
This documentation is valid for:
Deprecated: Replaced by the FromURL method.

Defines the image that will be associated with a variable.


LoadBitmap(file_name | att | var)


File_name | att | var
  Path name of the file containing the image.

The name of the file containing the image may be specified as a string between quotes, an attribute or a variable. If the extension name is not added, then *.bmp is assumed. They usually are *.BMP, *.WMF, *.EMF, *.GIF or *.ICO type files.

Type Returned:


Objects: Procedure, Transaction, Web Panel, Data Provider
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)


Define a Clients Transaction (Code* Name ClientPhoto) where the ClientPhoto attribute contains the pathname of the file (BMP type) that contains the client's photo. To display the client's photo on the form you must define a variable of the image type, for example: &Photo, and place it in the Form by adding the following rule:


&Photo = LoadBitmap(ClientPhoto);