AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de dibujo
  • End of drawing
  • Dibujo en PHP
  • Dibujo en código Navegador
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Flips an image with respect to a horizontal axis (symmetry with respect to a horizontal axis). This image can correspond to:
  • an Image control,
  • a variable of type Image.
    WEBDEV - Código NavegadorPHP This type of variable is not available.
  • WINDEVWEBDEV - Código Servidor a variable of type WDPic (on the background layer),
  • WINDEVWEBDEV - Código Servidor a variable of type picLayer.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see Drawing in WINDEV, WEBDEV and WINDEV Mobile.
Ejemplo
// Symmetry of IMG_IMAGE1 with respect to a horizontal axis
MyResult is boolean
MyResult = dHorizontalSymmetry(IMG_IMAGE1)
IF MyResult = False THEN Error("The operation failed")
Sintaxis
<Result> = dHorizontalSymmetry(<Image>)
<Result>: Boolean
  • True if symmetry has been achieved,
  • False otherwise.
<Image>: Name of the Image control, Image, WDPic or picLayer variable
Image to use. This image can correspond to:
  • the name of an Image control.
  • the name of a variable of type Image.
    WEBDEV - Código NavegadorPHP This type of variable is not available.
  • WINDEVWEBDEV - Código Servidor the name of a variable of type WDPic. Only the background layer will be handled.
  • WINDEVWEBDEV - Código Servidor the name of a variable of type picLayer.
The symmetry is performed in relation to the media horizontal axis of the control or image. The image is directly modified.
Observaciones

End of drawing

If dEndDrawing and dHorizontalSymmetry are called in the same process, the image changes will not be displayed.
PHP

Dibujo en PHP

En PHP, las funciones de dibujo se basan en la biblioteca gráfica GD. Esta biblioteca es comúnmente utilizada por los servicios de alojamiento PHP, y por lo tanto, siempre está habilitada. La versión de la biblioteca GD debe ser la versión 2.0.28 (o posterior). Esta biblioteca se puede descargar desde el sitio web de PHP.
Para habilitar (si es necesario) esta biblioteca en el equipo local, se requieren los siguientes elementos:
  • PHP instalado.
  • el archivo PHP.INI ubicado en el directorio de Windows debe tener la línea "extension=php_gd2.dll" y no ";extension=php_gd2.dll".
  • el archivo php_gd2.dll debe existir en el directorio de extensiones PHP. Este directorio está definido en el archivo PHP.INI por la variable "extension_dir".
WEBDEV - Código Navegador

Dibujo en código Navegador

Algunas funciones de dibujo están disponibles en código Navegador. Las funciones de dibujo en código Navegador se basan en el estándar HTML 5. Más concretamente, en la etiqueta "canvas" de HTML 5.
Las funcionalidades de dibujo en código Navegador solo están disponibles en navegadores recientes (compatibles con el estándar HTML 5). Para saber si el navegador utilizado propone funcionalidades de dibujo, utilice la función DrawingAvailable.
Atención: Para utilizar las funciones de dibujo con Internet Explorer 9, el proyecto debe incluir la referencia en el archivo DTD. Para ello, el modo HTML debe ser "HTML 4.01 Transitional + DTD". Esta opción está disponible en la pestaña "Avanzado" de la ventana de descripción del proyecto.
Recordatorio: Para abrir la ventana de descripción del proyecto, en la pestaña "Proyecto", en el grupo "Proyecto", haga clic en "Descripción".
Caso especial: Dibujar en el navegador de un teléfono Android: Las funciones de dibujo del navegador solo están disponibles a partir de la versión 3 de Android.
Componente: wd300pnt.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/05/2025

Señalar un error o enviar una sugerencia | Ayuda local