| 套件 | mx.utils |
| 類別 | public class GraphicsUtil |
| 繼承 | GraphicsUtil Object |
| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
GraphicsUtil.drawRoundRectComplex() method.
| 方法 | 定義自 | ||
|---|---|---|---|
drawRoundRectComplex(graphics:Graphics, x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void [靜態]
Draws a rounded rectangle using the size of a radius to draw the rounded corners. | GraphicsUtil | ||
drawRoundRectComplex2(graphics:Graphics, x:Number, y:Number, width:Number, height:Number, radiusX:Number, radiusY:Number, topLeftRadiusX:Number, topLeftRadiusY:Number, topRightRadiusX:Number, topRightRadiusY:Number, bottomLeftRadiusX:Number, bottomLeftRadiusY:Number, bottomRightRadiusX:Number, bottomRightRadiusY:Number):void [靜態]
Draws a rounded rectangle using the size of individual x and y radii to
draw the rounded corners. | GraphicsUtil | ||
![]() |
指出物件是否有已定義的指定屬性。 | Object | |
![]() |
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | |
![]() |
指出指定的屬性是否存在,以及是否可列舉。 | Object | |
![]() |
為迴圈作業設定動態屬性的可用性。 | Object | |
![]() |
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | |
![]() |
會傳回指定之物件的字串形式。 | Object | |
![]() |
會傳回指定之物件的基本值。 | Object | |
drawRoundRectComplex | () | 方法 |
public static function drawRoundRectComplex(graphics:Graphics, x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
Draws a rounded rectangle using the size of a radius to draw the rounded corners.
You must set the line style, fill, or both
on the Graphics object before
you call the drawRoundRectComplex() method
by calling the linestyle(),
lineGradientStyle(), beginFill(),
beginGradientFill(), or
beginBitmapFill() method.
參數
graphics:Graphics — The Graphics object that draws the rounded rectangle.
| |
x:Number — The horizontal position relative to the
registration point of the parent display object, in pixels.
| |
y:Number — The vertical position relative to the
registration point of the parent display object, in pixels.
| |
width:Number — The width of the round rectangle, in pixels.
| |
height:Number — The height of the round rectangle, in pixels.
| |
topLeftRadius:Number — The radius of the upper-left corner, in pixels.
| |
topRightRadius:Number — The radius of the upper-right corner, in pixels.
| |
bottomLeftRadius:Number — The radius of the bottom-left corner, in pixels.
| |
bottomRightRadius:Number — The radius of the bottom-right corner, in pixels.
|
drawRoundRectComplex2 | () | 方法 |
public static function drawRoundRectComplex2(graphics:Graphics, x:Number, y:Number, width:Number, height:Number, radiusX:Number, radiusY:Number, topLeftRadiusX:Number, topLeftRadiusY:Number, topRightRadiusX:Number, topRightRadiusY:Number, bottomLeftRadiusX:Number, bottomLeftRadiusY:Number, bottomRightRadiusX:Number, bottomRightRadiusY:Number):void| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 4 |
| 執行階段版本: | Flash Player 10, AIR 1.5 |
Draws a rounded rectangle using the size of individual x and y radii to
draw the rounded corners.
You must set the line style, fill, or both
on the Graphics object before
you call the drawRoundRectComplex2() method
by calling the linestyle(),
lineGradientStyle(), beginFill(),
beginGradientFill(), or
beginBitmapFill() method.
參數
graphics:Graphics — The Graphics object that draws the rounded rectangle.
| |
x:Number — The horizontal position relative to the
registration point of the parent display object, in pixels.
| |
y:Number — The vertical position relative to the
registration point of the parent display object, in pixels.
| |
width:Number — The width of the round rectangle, in pixels.
| |
height:Number — The height of the round rectangle, in pixels.
| |
radiusX:Number — The default radiusX to use, if corner-specific values are not specified.
This value must be specified.
| |
radiusY:Number — The default radiusY to use, if corner-specific values are not specified.
If 0, the value of radiusX is used.
| |
topLeftRadiusX:Number — The x radius of the upper-left corner, in pixels. If NaN,
the value of radiusX is used.
| |
topLeftRadiusY:Number — The y radius of the upper-left corner, in pixels. If NaN,
the value of topLeftRadiusX is used.
| |
topRightRadiusX:Number — The x radius of the upper-right corner, in pixels. If NaN,
the value of radiusX is used.
| |
topRightRadiusY:Number — The y radius of the upper-right corner, in pixels. If NaN,
the value of topRightRadiusX is used.
| |
bottomLeftRadiusX:Number — The x radius of the bottom-left corner, in pixels. If NaN,
the value of radiusX is used.
| |
bottomLeftRadiusY:Number — The y radius of the bottom-left corner, in pixels. If NaN,
the value of bottomLeftRadiusX is used.
| |
bottomRightRadiusX:Number — The x radius of the bottom-right corner, in pixels. If NaN,
the value of radiusX is used.
| |
bottomRightRadiusY:Number — The y radius of the bottom-right corner, in pixels. If NaN,
the value of bottomRightRadiusX is used.
|
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性