|
|
|
|
|
- Gradient parameters
- Dibujo en código Navegador
dRectangleGradient (Function)
dStartDrawing(IMG_Image1)
dRectangleGradient(10, 20, 100, 150, LightRed, LightBlue, 0, LightYellow, 30)
Sintaxis
Drawing a rectangle by specifying the points of the rectangle and the gradient Ocultar los detalles
dRectangleGradient([<Image>, ] <X1> , <Y1> , <X2> , <Y2> , <Start color> , <End color> [, <Angle> [, <Color 3> [, <Distance color 3> [, <Color 4> [, <Distance color 4>]]]]])
<Image>: Optional control name or optional Image, WDPic or picLayer variable
<X1>: Integer X-coordinate (in pixels) of the upper-left corner of the rectangle. <Y1>: Integer Y-coordinate (in pixels) of the upper-left corner of the rectangle. <X2>: Integer X-coordinate (in pixels) of the lower-right corner of the rectangle. <Y2>: Integer Y-coordinate (in pixels) of the lower-right corner of the rectangle. <Start color>: Integer or constant Start color of the gradient. This color can correspond to: <End color>: Integer or constant End color of the gradient. This color can correspond to: <Angle>: Optional integer 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>: Optional constant or integer Color that will be used in the gradient. This color can correspond to: <Distance color 3>: Optional integer Percentage separating the start color from color 3.
<Color 4>: Optional constant or integer Color that will be used in the gradient. This color can correspond to: <Distance color 4>: Optional integer 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|