Imagen
Ruta de acceso
Ruta de una imagen source estática para un botón imagen, menú emergente de imagen, o imagen estática. Debe utilizar la sintaxis POSIX.
The following locations can be used for static pictures:
- in the Resources folder of the project. Appropriate when you want to share static pictures between several forms in the project. En este caso, el nombre de la ruta es "/RESOURCES/<picture path>".
- en una carpeta de imágenes (por ejemplo, llamada Images) dentro de la carpeta del formulario. Apropiado cuando las imágenes estáticas se utilizan sólo en el formulario y/o se quiere poder mover o duplicar todo el formulario dentro del proyecto o de diferentes proyectos. En este caso, el nombre de la ruta es ""<picture path>" y se resuelve desde la raíz de la carpeta del formulario.
- in a 4D picture variable. The picture must be loaded in memory when the form is executed. In this case, the Pathname is "var:<variableName>".
Gramática JSON
Nombre | Tipos de datos | Valores posibles |
---|---|---|
imagen | texto | Relative or filesystem path in POSIX syntax, or "var:<variableName>" for picture variable |
Objetos soportados
Botón imagen - Menú emergente imagen - Imagen estática
Visualización
A escala para ajustarse
Gramática JSON: "scaled"
The Scaled to fit format causes 4D to resize the picture to fit the dimensions of the area.
Replicado
Gramática JSON: "tiled"
When the area that contains a picture with the Replicated format is enlarged, the picture is not deformed but is replicated as many times as necessary in order to fill the area entirely.
If the field is reduced to a size smaller than that of the original picture, the picture is truncated (non-centered).
Centrado / Truncado (no centrado)
JSON grammar: "truncatedCenter" / "truncatedTopLeft"
El formato Centro hace que 4D centre la imagen en el área y recorte cualquier parte que no quepa dentro del área. 4D crops equally from each edge and from the top and bottom.
The Truncated (non-centered) format causes 4D to place the upper-left corner of the picture in the upper-left corner of the area and crop any portion that does not fit within the area. 4D crops from the right and bottom.
When the picture format is Truncated (non-centered), it is possible to add scroll bars to the input area.
Gramática JSON
Nombre | Tipos de datos | Valores posibles |
---|---|---|
pictureFormat | cadena | "scaled", "tiled", "truncatedCenter", "truncatedTopLeft" |