套件 | mx.graphics |
介面 | public interface IStroke |
實作者 | GradientStroke, SolidColorStroke |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
joints : String [唯讀]
Specifies the appearance of line intersections used at angles. | IStroke | ||
miterLimit : Number [唯讀]
Indicates the limit at which a miter is cut off. | IStroke | ||
scaleMode : String [唯讀]
A value from the LineScaleMode class
that specifies which scale mode to use. | IStroke | ||
weight : Number
The line weight, in pixels. | IStroke |
公用方法
方法 | 定義自 | ||
---|---|---|---|
Applies the properties to the specified Graphics object. | IStroke | ||
Generates a GraphicsStroke object representing
this stroke. | IStroke |
屬性詳細資訊
joints | 屬性 |
miterLimit | 屬性 |
scaleMode | 屬性 |
scaleMode:String
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A value from the LineScaleMode class that specifies which scale mode to use. Value valids are:
-
LineScaleMode.NORMAL
— Always scale the line thickness when the object is scaled (the default). -
LineScaleMode.NONE
— Never scale the line thickness. -
LineScaleMode.VERTICAL
— Do not scale the line thickness if the object is scaled vertically only. -
LineScaleMode.HORIZONTAL
— Do not scale the line thickness if the object is scaled horizontally only.
預設值為 LineScaleMode.NORMAL。
實作
public function get scaleMode():String
相關 API 元素
weight | 屬性 |
方法詳細資訊
apply | () | 方法 |
public function apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Applies the properties to the specified Graphics object.
參數
graphics:Graphics — The Graphics object to apply the properties to.
| |
targetBounds:Rectangle — The bounds of the shape that the stroke is applied to.
| |
targetOrigin:Point — The Point that defines the origin (0,0) of the shape in the
coordinate system of target.
|
createGraphicsStroke | () | 方法 |
public function createGraphicsStroke(targetBounds:Rectangle, targetOrigin:Point):GraphicsStroke
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Generates a GraphicsStroke object representing this stroke.
參數
targetBounds:Rectangle — The stroke's bounding box.
| |
targetOrigin:Point — The Point that defines the origin (0,0) of the shape in the
coordinate system of target.
|
GraphicsStroke — The Drawing API-2 GraphicsStroke object representing
this stroke.
|
Tue Jun 12 2018, 03:47 PM Z