| 包 | mx.utils |
| Class | public class GraphicsUtil |
| 继承 | GraphicsUtil Object |
GraphicsUtil.drawRoundRectComplex() 之类的方法。
| 方法 | 定义方 | ||
|---|---|---|---|
drawRoundRectComplex(graphics:Graphics, x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void []
使用绘制圆角的半径大小来绘制圆角矩形。 | GraphicsUtil | ||
![]() |
指示对象是否已经定义了指定的属性。 | 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
使用绘制圆角的半径大小来绘制圆角矩形。必须在调用 drawRoundRectComplex() 方法之前通过调用 linestyle()、lineGradientStyle()、beginFill()、beginGradientFill() 或 beginBitmapFill() 来设置 Graphics 对象上的线条样式、填充,或同时设置二者。
参数
graphics:Graphics — 绘制圆角矩形的 Graphics 对象。
| |
x:Number — 相对于父显示对象注册点的水平位置(以像素为单位)。
| |
y:Number — 相对于父显示对象注册点的垂直位置(以像素为单位)。
| |
width:Number — 圆角矩形的宽度(以像素为单位)。
| |
height:Number — 圆角矩形的高度(以像素为单位)。
| |
topLeftRadius:Number — 左上角的半径(以像素为单位)。
| |
topRightRadius:Number — 右上角的半径(以像素为单位)。
| |
bottomLeftRadius:Number — 左下角的半径(以像素为单位)。
| |
bottomRightRadius:Number — 右下角的半径(以像素为单位)。
|
当前页: http://livedocs.adobe.com/flex/3_cn/mx/utils/GraphicsUtil.html