| Pacote | mx.graphics |
| Classe | public class RectangularDropShadow |
| Herança | RectangularDropShadow Object |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
This class optimizes drop shadows for a common case. If you are applying a drop shadow to a rectangularly-shaped object whose edges fall on pixel boundaries, then this class should be used instead of using the DropShadowFilter directly.
This class accepts the first four parameters that are passed
to DropShadowFilter: alpha, angle,
color, and distance.
In addition, this class accepts the corner radii for each of the four
corners of the rectangularly-shaped object that is casting a shadow.
Once those 8 values have been set,
this class pre-computes the drop shadow in an offscreen Bitmap.
When the drawShadow() method is called, pieces of the
precomputed drop shadow are copied onto the passed-in Graphics object.
Elementos da API relacionados
| Propriedade | Definido por | ||
|---|---|---|---|
| alpha : Number
Valor de transparência alfa da cor de sombra. | RectangularDropShadow | ||
| angle : Number
Ângulo da sombra. | RectangularDropShadow | ||
| blRadius : Number
The corner radius of the bottom left corner
of the rounded rectangle that is casting the shadow. | RectangularDropShadow | ||
| blurX : Number
The amount of horizontal blur. | RectangularDropShadow | ||
| blurY : Number
The amount of vertical blur. | RectangularDropShadow | ||
| brRadius : Number
The corner radius of the bottom right corner
of the rounded rectangle that is casting the shadow. | RectangularDropShadow | ||
| color : int
Cor da sombra. | RectangularDropShadow | ||
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | |
| distance : Number
Distância de deslocamento da sombra, em pixels. | RectangularDropShadow | ||
| tlRadius : Number
The corner radius of the top left corner
of the rounded rectangle that is casting the shadow. | RectangularDropShadow | ||
| trRadius : Number
The corner radius of the top right corner
of the rounded rectangle that is casting the shadow. | RectangularDropShadow | ||
| Método | Definido por | ||
|---|---|---|---|
Constructor. | RectangularDropShadow | ||
Renders the shadow on the screen. | RectangularDropShadow | ||
![]() |
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 | |
![]() |
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 | |
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 |
Valor de transparência alfa da cor de sombra. Os valores válidos são 0,0 a 1,0. Por exemplo, ,25 define um valor de transparência de 25%. O valor padrão é 1,0.
Implementação
public function get alpha():Number public function set alpha(value:Number):voidangle | propriedade |
angle:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Ângulo da sombra. Os valores válidos são 0 a 360 graus (ponto flutuante). O valor padrão é 45.
Implementação
public function get angle():Number public function set angle(value:Number):voidblRadius | propriedade |
blRadius: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 corner radius of the bottom left corner of the rounded rectangle that is casting the shadow. May be zero for non-rounded rectangles.
Implementação
public function get blRadius():Number public function set blRadius(value:Number):voidblurX | propriedade |
blurY | propriedade |
brRadius | propriedade |
brRadius: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 corner radius of the bottom right corner of the rounded rectangle that is casting the shadow. May be zero for non-rounded rectangles.
Implementação
public function get brRadius():Number public function set brRadius(value:Number):voidcolor | propriedade |
color:int| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Cor da sombra. Os valores válidos estão no formato hexadecimal 0xRRGGBB. O valor padrão é 0x000000.
Implementação
public function get color():int public function set color(value:int):voiddistance | propriedade |
distance:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Distância de deslocamento da sombra, em pixels. O valor padrão é de 4,0 (ponto flutuante).
Implementação
public function get distance():Number public function set distance(value:Number):voidtlRadius | propriedade |
tlRadius: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 corner radius of the top left corner of the rounded rectangle that is casting the shadow. May be zero for non-rounded rectangles.
Implementação
public function get tlRadius():Number public function set tlRadius(value:Number):voidtrRadius | propriedade |
trRadius: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 corner radius of the top right corner of the rounded rectangle that is casting the shadow. May be zero for non-rounded rectangles.
Implementação
public function get trRadius():Number public function set trRadius(value:Number):voidRectangularDropShadow | () | Construtor |
public function RectangularDropShadow()| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor.
drawShadow | () | método |
public function drawShadow(g:Graphics, x:Number, y:Number, width:Number, height:Number):void| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Renders the shadow on the screen.
Parâmetros
g:Graphics — The Graphics object on which to draw the shadow.
| |
x:Number — The horizontal offset of the drop shadow,
based on the Graphics object's position.
| |
y:Number — The vertical offset of the drop shadow,
based on the Graphics object's position.
| |
width:Number — The width of the shadow, in pixels.
| |
height:Number — The height of the shadow, in pixels.
|
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas