AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de dibujo
  • Gradient parameters
  • 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
Draws a rectangle in an Image control.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see Drawing in WINDEV, WEBDEV and WINDEV Mobile.
Ejemplo
// Draw a rectangle whose background changes from red to blue
// via yellow
IMG_Image1.DrawRectangleGradient(10, 20, 100, 150, LightRed, LightBlue, 0, LightYellow, 30)
Sintaxis

Dibujar un rectángulo especificando los puntos del rectángulo y el degradado Ocultar los detalles

<Image control>.DrawRectangleGradient(<X1> , <Y1> , <X2> , <Y2> , <Start color> , <End color> [, <Angle> [, <Color 3> [, <Distance color 3> [, <Color 4> [, <Distance color 4>]]]]])
<Image control>: Nombre del control
Name of the Image control to be used.
<X1>: Entero
X-coordinate (in pixels) of the upper-left corner of the rectangle.
<Y1>: Entero
Y-coordinate (in pixels) of the upper-left corner of the rectangle.
<X2>: Entero
X-coordinate (in pixels) of the lower-right corner of the rectangle.
<Y2>: Entero
Y-coordinate (in pixels) of the lower-right corner of the rectangle.
<Start color>: Entero o constante
Start color of the gradient. This color can correspond to:
<End color>: Entero o constante
End color of the gradient. This color can correspond to:
<Angle>: Entero opcional
Angle that will be used for the selection of colors in the gradient. The angle value is included between 0 (horizontal angle, default value) and 360°.
AndroidJava Only the following angles can be used: 0,90,180,270,360.
<Color 3>: Entero o constante opcional
Color that will be used in the gradient. This color can correspond to:
AndroidJava This parameter is not available.
<Distance color 3>: Entero opcional
Percentage separating the start color from color 3.
AndroidJava This parameter is not available.
<Color 4>: Entero o constante opcional
Color that will be used in the gradient. This color can correspond to:
AndroidJava This parameter is not available.
<Distance color 4>: Entero opcional
Percentage separating the start color from color 4.
AndroidJava This parameter is not available.
WINDEVWEBDEV - Código ServidoriPhone/iPad

Dibujar un rectángulo especificando los puntos del rectángulo y utilizando el tipo Background Ocultar los detalles

<Image control>.DrawRectangleGradient(<X1> , <Y1> , <X2> , <Y2> , <Gradient>)
<Image control>: Nombre del control
Name of the Image control to be used.
<X1>: Entero
X-coordinate (in pixels) of the upper-left corner of the rectangle.
<Y1>: Entero
Y-coordinate (in pixels) of the upper-left corner of the rectangle.
<X2>: Entero
X-coordinate (in pixels) of the lower-right corner of the rectangle.
<Y2>: Entero
Y-coordinate (in pixels) of the lower-right corner of the rectangle.
<Gradient>: Variable de tipo Background
Name of the Background variable the with the gradient characteristics.
WINDEVWEBDEV - Código ServidoriPhone/iPad

Dibujar un rectángulo utilizando el tipo Rectangle y especificando el degradado Ocultar los detalles

<Image control>.DrawRectangleGradient(<Rectangle> , <Start color> , <End color> [, <Angle> [, <Color 3> [, <Distance color 3> [, <Color 4> [, <Distance color 4>]]]]])
<Image control>: Nombre del control
Name of the Image control to be used.
<Rectangle>: Variable de tipo Rectangle
Name of the Rectangle variable that defines the coordinates of the rectangle to draw.
<Start color>: Entero o constante
Start color of the gradient. This color can correspond to:
<End color>: Entero o constante
End color of the gradient. This color can correspond to:
<Angle>: Entero opcional
Angle that will be used for the selection of colors in the gradient. The angle value is included between 0 (horizontal angle, default value) and 360°.
<Color 3>: Entero o constante opcional
Color that will be used in the gradient. This color can correspond to:
<Distance color 3>: Entero opcional
Percentage separating the start color from color 3.
<Color 4>: Entero o constante opcional
Color that will be used in the gradient. This color can correspond to:
<Distance color 4>: Entero opcional
Percentage separating the start color from color 4.
WINDEVWEBDEV - Código ServidoriPhone/iPad

Dibujar un rectángulo utilizando el tipo Rectangle y Background Ocultar los detalles

<Image control>.DrawRectangleGradient(<Rectangle> , <Gradient>)
<Image control>: Nombre del control
Name of the Image control to be used.
<Rectangle>: Variable de tipo Rectangle
Name of the Rectangle variable that defines the coordinates of the rectangle to draw.
<Gradient>: Variable de tipo Background
Name of the Background variable the with the gradient characteristics.
Observaciones

Gradient parameters

The color parameters are used as follows:
The angle is used to define the orientation of the gradient.
The gradients performed with 3 or 4 colors are only available for an angle set to 0 or 90 degrees.
Note Gradients are not available on certain systems (e.g. Windows 98 or Me) or under TSE 256 colors. In this case, a rectangle whose color corresponds to <Start color> is displayed.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300pnt.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/09/2024

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