| Pacote | mx.graphics |
| Classe | public class BitmapFill |
| Herança | BitmapFill EventDispatcher Object |
| Implementações | IFill |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Mais exemplos
Elementos da API relacionados
| Propriedade | Definido por | ||
|---|---|---|---|
| alpha : Number
The transparency of a fill. | BitmapFill | ||
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | 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 Obsoleto desde 4.0: Use x
How far the bitmap is horizontally offset from the origin. | BitmapFill | ||
| offsetY : Number Obsoleto desde 4.0: Use y
How far the bitmap is vertically offset from the origin. | BitmapFill | ||
| originX : Number Obsoleto desde 4.0: Use transformX
The horizontal origin for the bitmap fill. | BitmapFill | ||
| originY : Number Obsoleto desde 4.0: Use transformY
The vertical origin for the bitmap fill. | BitmapFill | ||
| repeat : Boolean Obsoleto desde 4.0: Use 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 | ||
| Propriedade | Definido por | ||
|---|---|---|---|
| compoundTransform : mx.geom:CompoundTransform
Holds the matrix and the convenience transform properties (x, y, and rotation). | BitmapFill | ||
| Método | Definido por | ||
|---|---|---|---|
Constructor. | BitmapFill | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento. | EventDispatcher | |
![]() |
Envia um evento para o fluxo de eventos. | EventDispatcher | |
![]() |
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento. | EventDispatcher | |
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Remove um ouvinte do objeto EventDispatcher. | EventDispatcher | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
![]() |
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado. | EventDispatcher | |
alpha | propriedade |
alpha:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The transparency of a fill. Possible values are 0.0 (invisible) through 1.0 (opaque).
O valor padrão é 1.0..
Implementação
public function get alpha():Number public function set alpha(value:Number):voidcompoundTransform | propriedade |
protected var compoundTransform:mx.geom:CompoundTransform| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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 | propriedade |
fillMode:String| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 4 |
| Versões de runtime: | 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.
O valor padrão é BitmapFillMode.SCALE.
Implementação
public function get fillMode():String public function set fillMode(value:String):voidmatrix | propriedade |
offsetX | propriedade |
offsetX:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
How far the bitmap is horizontally offset from the origin. This adjustment is performed after rotation and scaling.
O valor padrão é 0.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get offsetX():Number public function set offsetX(value:Number):voidoffsetY | propriedade |
offsetY:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
How far the bitmap is vertically offset from the origin. This adjustment is performed after rotation and scaling.
O valor padrão é 0.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get offsetY():Number public function set offsetY(value:Number):voidoriginX | propriedade |
originX:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
O valor padrão é 0.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get originX():Number public function set originX(value:Number):voidoriginY | propriedade |
originY:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
O valor padrão é 0.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get originY():Number public function set originY(value:Number):voidrepeat | propriedade |
repeat:Boolean| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
O valor padrão é true.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get repeat():Boolean public function set repeat(value:Boolean):voidrotation | propriedade |
rotation:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The number of degrees to rotate the bitmap. Valid values range from 0.0 to 360.0.
O valor padrão é 0.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get rotation():Number public function set rotation(value:Number):voidscaleX | propriedade |
scaleX:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get scaleX():Number public function set scaleX(value:Number):voidscaleY | propriedade |
scaleY:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get scaleY():Number public function set scaleY(value:Number):voidsmooth | propriedade |
smooth:Boolean| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A flag indicating whether to smooth the bitmap data when filling with it.
O valor padrão é false.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get smooth():Boolean public function set smooth(value:Boolean):voidsource | propriedade |
source:Object| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
O valor padrão é null.
Implementação
public function get source():Object public function set source(value:Object):voidtransformX | propriedade |
transformY | propriedade |
x | propriedade |
x:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the x axis.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get x():Number public function set x(value:Number):voidy | propriedade |
y:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the y axis.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get y():Number public function set y(value:Number):voidBitmapFill | () | Construtor |
public function BitmapFill()| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor.
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas