AP Get picture type

4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next

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

ParameterTypeDescription
storedPictureBlobPicture stored as a BLOB
Function resultLongintType of the picture

Description

AP Get picture type returns the type of the image stored in the BLOB storedPicture:

-1Unknown type
0'PICT' picture
1QuickTime compressed 'PICT' picture
2JPEG picture
3WMF picture
4EMF picture
5BMP picture
6GIF 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)

4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next