READ PICTURE FILE

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.7


READ PICTURE FILE (fileName; picture)

ParameterTypeDescription
fileNameStringName or full pathname of the file to read,
or empty string
picturePicturePicture from file

Description

The READ PICTURE FILE command allows you to open the picture saved in the fileName disk file and to load it in the picture 4D field or variable.

Warning: This command uses QuickTime conversion routines (version 4 or above recommended) for Mac OS and Windows. If Quicktime is not installed, the command can only open PICT file format.

You can pass in fileName the full pathname of the file to read, or a file name only. If you just pass the file name, it should be located next to the database structure file. Under Windows, the file extension must be indicated.

If an empty string ("") is passed in fileName, the standard Open file dialog box is displayed and the user can select the file to be read, as well as the available formats (provided with QuickTime 4).

You can obtain the list of available formats using the PICTURE TYPE LIST command. Refer to the PICTURE TYPE LIST command for a description of QuickTime 4 standard format codes.

You pass in picture the picture variable or field which will get the read image.

Note: The internal picture format is stored by QuickTime within the 4D variable or field. Consequently, it is necessary to get QuickTime to read the picture within 4D.

If the command is executed successfully, the system variable Document contains the full pathname to the open file and the system variable OK is set to 1. Otherwise, OK is set to 0.

See Also

BLOB TO PICTURE, PICTURE TYPE LIST, Pictures, WRITE PICTURE FILE.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next