This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
GET PICTURE FORMATS
|
GET PICTURE FORMATS ( picture ; codecIDs ) | ||||||||
Parameter | Type | Description | ||||||
picture | Picture |
![]() |
Picture field or variable to analyze | |||||
codecIDs | Text array |
![]() |
Picture codec IDs | |||||
The GET PICTURE FORMATS command returns an array of all the codec IDs (picture formats) contained in the picture passed as parameter. A 4D picture (field or variable) can contain the same picture encoded in different formats, such as PNG, BMP, GIF, etc.
In the picture parameter, you pass a picture field or a picture variable whose included formats you want to be returned in the codecIDs array.
The codec IDs returned are established by 4D in exactly the same way as for the PICTURE CODEC LIST command. They can be returned in the following forms:
Notes:
For more information about picture codec IDs, refer to the Pictures section.
You want to know the picture formats stored in a field for the current record:
ARRAY TEXT($aTPictureFormats;0)
//Get all the formats saved
GET PICTURE FORMATS([Employees]Photo;$aTPictureFormats)
Product: 4D
Theme: Pictures
Number:
1406
Created: 4D v16
4D Language Reference ( 4D v20 R7)