4D v14.3PICTURE TO GIF |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
PICTURE TO GIF
PICTURE TO GIF
The PICTURE TO GIF command converts a PICT picture stored in a variable or in a 4D field into a GIF picture. You pass a picture variable or a picture field in pict and a BLOB variable or a BLOB field in blobGIF. After executing the command, blobGIF contains the image in GIF format. Note: The GIF picture format cannot contain more than 256 colors. If the original PICT picture contains more colors, some may be lost. The command reduces the number of colors according to the system palette. The GIF generated is of type 87a (opaque) and normal (not interlaced). You can then save the picture located in blobGIF in a file using the Windows Ctrl down command or you can even publish it on the Web. If the conversion was successful, the OK system variable is set to 1. Otherwise, it will be equal to 0. Let us assume that you want to generate a GIF picture on the fly by displaying a connection counter. In the database’s picture library, place all the numbers as pictures: In the On Web Connection Database Method, you write the following code: If(Web Context) Here is the gifcounter method: C_LONGINT($1) When sending a page to the Web browser, 4D displays a GIF picture that looks like the following picture: If the conversion was successful, the OK system variable is set to 1. Otherwise, it will be equal to 0. |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v6.7 ARTICLE USAGE
4D Language Reference ( 4D v14 R3) Inherited from : PICTURE TO GIF ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||