|
|
|
|
|
- Gradient parameters
- Dibujo en código Navegador
<Image>.DrawRectangleGradient (Función) Draws a rectangle in an Image control. // 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°.
<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.
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
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|