4D v13.4Pictures |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Pictures
Pictures
4D integrates native management of picture formats. This means that pictures will be displayed and stored in their original format, without any interpretation in 4D. The specific features of the different formats (shading, transparent areas, etc.) will be retained when they are copied and pasted, and will be displayed without alteration. This native support is valid for all pictures stored in 4D: library pictures, pictures pasted into forms in Design mode, pictures pasted into fields or variables in Application mode, etc. Beginning with version 12, 4D uses native APIs to encode and decode pictures (fields and variables) under both Windows and Mac OS. These implementations provide access to numerous native forms, including the RAW format, currently used by digital cameras.
Under Windows as under Mac OS, the formats supported vary according to the operating system and the custom codecs that are installed on the machines. To find out which codecs are available, you must use the PICTURE CODEC LIST command. Note: WIC and ImageIO permit the use of metadata in pictures. Two commands, SET PICTURE METADATA and GET PICTURE METADATA, let you benefit from metadata in your developments. Note: If 4D cannot interpret the picture format, the program calls on Quicktime routines (see below). Picture formats recognized by 4D are returned by the PICTURE CODEC LIST command as picture Codec IDs. They can be returned in three different forms:
4D lets you retrieve the local coordinates of a click on a picture field or variable, even if a scroll or zoom has been applied to the picture. 4D allows you to carry out operations on 4D pictures, such as concatenation, superimposing, etc. This point is covered in the Picture Operators section. 4D can use Apple QuickTime routines to manage picture storage and display in databases. Compatibility Note: The QT LOAD COMPRESS PICTURE FROM FILE, QT COMPRESS PICTURE FILE and QT COMPRESS PICTURE commands call upon obsolete mechanisms. They can be favorably replaced by the WRITE PICTURE FILE, PICTURE TO BLOB or CONVERT PICTURE commands. Moreover, commands that call on disk files (QT LOAD COMPRESS PICTURE FROM FILE and QT COMPRESS PICTURE FILE) will not work under Windows, no matter what version of QuickTime is installed. When you try to use a picture conversion or compression command and QuickTime is not installed in your system, 4D returns the error code -9955. Other errors generated by QuickTime can also be returned. You can catch these errors using an error-handling method installed with ON ERR CALL. |
PROPERTIES
Product: 4D SEE ALSO
Picture Operators |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||