套件 | mx.graphics |
類別 | public class BitmapFill |
繼承 | BitmapFill EventDispatcher Object |
實作 | IFill |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
更多範例
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
alpha : Number
The transparency of a fill. | BitmapFill | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
fillMode : String
Determines how the bitmap fills in the dimensions. | BitmapFill | ||
matrix : Matrix
An array of values used for matrix transformation. | BitmapFill | ||
offsetX : Number 從下列版本以後不建議使用: 4.0: 請使用 x
How far the bitmap is horizontally offset from the origin. | BitmapFill | ||
offsetY : Number 從下列版本以後不建議使用: 4.0: 請使用 y
How far the bitmap is vertically offset from the origin. | BitmapFill | ||
originX : Number 從下列版本以後不建議使用: 4.0: 請使用 transformX
The horizontal origin for the bitmap fill. | BitmapFill | ||
originY : Number 從下列版本以後不建議使用: 4.0: 請使用 transformY
The vertical origin for the bitmap fill. | BitmapFill | ||
repeat : Boolean 從下列版本以後不建議使用: 4.0: 請使用 fillMode
Whether the bitmap is repeated to fill the area. | BitmapFill | ||
rotation : Number
The number of degrees to rotate the bitmap. | BitmapFill | ||
scaleX : Number
The percent to horizontally scale the bitmap when filling,
from 0.0 to 1.0. | BitmapFill | ||
scaleY : Number
The percent to vertically scale the bitmap when filling,
from 0.0 to 1.0. | BitmapFill | ||
smooth : Boolean
A flag indicating whether to smooth the bitmap data
when filling with it. | BitmapFill | ||
source : Object
The source used for the bitmap fill. | BitmapFill | ||
transformX : Number
The x position transform point of the fill. | BitmapFill | ||
transformY : Number
The y position transform point of the fill. | BitmapFill | ||
x : Number
The distance by which to translate each point along the x axis. | BitmapFill | ||
y : Number
The distance by which to translate each point along the y axis. | BitmapFill |
屬性 | 定義自 | ||
---|---|---|---|
compoundTransform : mx.geom:CompoundTransform
Holds the matrix and the convenience transform properties (x, y, and rotation). | BitmapFill |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | BitmapFill | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
alpha | 屬性 |
compoundTransform | 屬性 |
protected var compoundTransform:mx.geom:CompoundTransform
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Holds the matrix and the convenience transform properties (x
, y
, and rotation
).
The compoundTransform is only created when the matrix
property is set.
fillMode | 屬性 |
fillMode:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Determines how the bitmap fills in the dimensions. If you set the value
of this property in a tag, use the string (such as "repeat"). If you set the value of
this property in ActionScript, use the constant (such as BitmapFillMode.CLIP
).
When set to BitmapFillMode.CLIP
("clip"), the bitmap
ends at the edge of the region.
When set to BitmapFillMode.REPEAT
("repeat"), the bitmap
repeats to fill the region.
When set to BitmapFillMode.SCALE
("scale"), the bitmap
stretches to fill the region.
預設值為 BitmapFillMode.SCALE
。
實作
public function get fillMode():String
public function set fillMode(value:String):void
matrix | 屬性 |
offsetX | 屬性 |
offsetX:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
How far the bitmap is horizontally offset from the origin. This adjustment is performed after rotation and scaling.
預設值為 0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get offsetX():Number
public function set offsetX(value:Number):void
offsetY | 屬性 |
offsetY:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
How far the bitmap is vertically offset from the origin. This adjustment is performed after rotation and scaling.
預設值為 0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get offsetY():Number
public function set offsetY(value:Number):void
originX | 屬性 |
originX:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The horizontal origin for the bitmap fill. The bitmap fill is offset so that this point appears at the origin. Scaling and rotation of the bitmap are performed around this point.
預設值為 0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get originX():Number
public function set originX(value:Number):void
originY | 屬性 |
originY:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The vertical origin for the bitmap fill. The bitmap fill is offset so that this point appears at the origin. Scaling and rotation of the bitmap are performed around this point.
預設值為 0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get originY():Number
public function set originY(value:Number):void
repeat | 屬性 |
repeat:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Whether the bitmap is repeated to fill the area.
Set to true
to cause the fill to tile outward
to the edges of the filled region.
Set to false
to end the fill at the edge of the region.
預設值為 true。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get repeat():Boolean
public function set repeat(value:Boolean):void
rotation | 屬性 |
rotation:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The number of degrees to rotate the bitmap. Valid values range from 0.0 to 360.0.
預設值為 0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get rotation():Number
public function set rotation(value:Number):void
scaleX | 屬性 |
scaleX:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The percent to horizontally scale the bitmap when filling, from 0.0 to 1.0. If 1.0, the bitmap is filled at its natural size.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get scaleX():Number
public function set scaleX(value:Number):void
scaleY | 屬性 |
scaleY:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The percent to vertically scale the bitmap when filling, from 0.0 to 1.0. If 1.0, the bitmap is filled at its natural size.
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get scaleY():Number
public function set scaleY(value:Number):void
smooth | 屬性 |
source | 屬性 |
source:Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The source used for the bitmap fill. The fill can render from various graphical sources, including the following:
- A Bitmap or BitmapData instance.
- A class representing a subclass of DisplayObject. The BitmapFill instantiates the class and creates a bitmap rendering of it.
- An instance of a DisplayObject. The BitmapFill copies it into a Bitmap for filling.
預設值為 null。
實作
public function get source():Object
public function set source(value:Object):void
transformX | 屬性 |
transformY | 屬性 |
x | 屬性 |
y | 屬性 |
BitmapFill | () | 建構函式 |
public function BitmapFill()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
Tue Jun 12 2018, 03:47 PM Z