4D v16WP INSERT PICTURE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP INSERT PICTURE
WP INSERT PICTURE
The WP INSERT PICTURE command inserts the picture in the rangeObj according to the specified insertion mode and rangeUpdate parameter. The picture will be inserted as a character in the rangeObj. In rangeObj, pass a valid 4D Write Pro standard range object. A rangeObj is a part of a 4D Write Pro document; it can be created using the , WP Get bookmark range or WP Get range commands. In picture, you can pass:
Any picture format supported by 4D can be used (see the Pictures section). You can get the list of available picture formats using the PICTURE CODEC LIST command. If the picture encapsulates several formats (codecs), 4D Write Pro only keeps one format for display and one format for printing (if different) in the document; the "best" formats are automatically selected. In the mode parameter, pass one of the following constants to indicate the insertion mode to be used on the picture in the document:
In the optional rangeUpdate parameter, you can pass one of the following constants to specify whether or not the inserted picture is included in the range:
Note: If you do not pass a rangeUpdate parameter, by default the inserted picture is included in the range. In the following example, a user selects the picture they want to insert into the range object and will be warned if this picture could not be inserted: C_OBJECT($wpRange)
See also
|
PROPERTIES
Product: 4D HISTORY
ARTICLE USAGE
4D Write Pro Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||