version 6.0.5
Compatibility Note: This command is now obsolete; it is kept only for compatibility reasons and will be removed in future versions of the plug-in. It is strongly recommended to use the 4D commands of the "Pictures" theme.
AP Get picture type (storedPicture) Longint
Parameter | Type | Description | |
storedPicture | Blob | Picture stored as a BLOB | |
Function result | Longint | Type of the picture |
Description
AP Get picture type returns the type of the image stored in the BLOB storedPicture:
-1 | Unknown type |
0 | 'PICT' picture |
1 | QuickTime compressed 'PICT' picture |
2 | JPEG picture |
3 | WMF picture |
4 | EMF picture |
5 | BMP picture |
6 | GIF picture |
Example
This example stores a picture in a BLOB and then stores its type in $type.
DOCUMENT TO BLOB($thefile;$theblob) $type:=AP Get picture type($theblob)