PictureBox-LoadPictureFile

Function Name dcl-PictureBox-LoadPictureFile
Syntax   (dcl-PictureBox-LoadPictureFile <CONTROL> Filename [as String] {Stretch [as Boolean]})
Return Type Boolean (T if successful; otherwise NIL)
Applies To Picture Box

This method displays the image in Filename. The file can be a bitmap (.bmp), JPEG (.jpg), PNG (.png), Windows metafile (.wmf), or icon (.ico) file. If Stretch is T, the picture is enlarged uniformly as much as possible to still fit inside the control.