|
|
 |
 |
| AddImageField |
| |
Create an image edit field |
| |
| Library |
 |
module::system/webui/forms.whlib |
| |
| Syntax |
 |
PUBLIC MACRO AddImageField (STRING groupname,STRING fieldname,STRING label,BLOB img,INTEGER widthconstraint,INTEGER heightconstraint,STRING format) |
| |
| Description |
 |
An image preview field is a component in a field group (use CreateFieldGroup to create one first) |
| |
| Parameters |
 |
| groupname |
 |
Group to add this field to |
 |
| fieldname |
 |
Name of the field to add |
 |
| label |
 |
Label to display |
 |
| img |
 |
Current image blob |
 |
| widthconstraint |
 |
Width constraint, if any (0 = no constraint, positive number: forced width, negative number: maximum width) |
 |
| heightconstraint |
 |
Height constraint, if any (0 = no constraint, positive number: forced height, negative number: maximum height) |
 |
| format |
 |
Required output format (image/png, image/jpeg or image/gif), or empty to keep the input format. If width/height constraints are set, the output format will always be one of JPEG,PNG or GIF, even if no format is forced |
 |
|
| |
|
|
|
|