Using Images from External Files

Description

Here is an example showing how to use images from external files.

image_name = a5.Get_exe_Path()+ chr(92) + "learning xdialog\person1.jpg"
f = file.open(image_name, FILE_RO_SHARED)
ui_bitmap_load("temp",f.readb(10000000))
f.close()
ui_dlg_box("Image","{image=temp} | ")
ui_bitmap_drop("temp")

Placing an Image from a File

images/XD_Picture_on_Form.gif

Limitations

Desktop applications only

See Also