| Paket | mx.graphics |
| Sınıf | public class RectangularDropShadow |
| Miras Alma | RectangularDropShadow Object |
| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
İlgili API Öğeleri
| Özellik | Tanımlayan: | ||
|---|---|---|---|
| alpha : Number
Gölge rengi için alfa saydamlık değeri. | RectangularDropShadow | ||
| angle : Number
Gölgenin açısı. | 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
Gölge rengi. | RectangularDropShadow | ||
![]() | constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | |
| distance : Number
Gölge için piksel cinsinden uzaklık mesafesi. | 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 | ||
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
Constructor. | RectangularDropShadow | ||
Renders the shadow on the screen. | RectangularDropShadow | ||
![]() |
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | |
![]() |
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | |
![]() |
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | |
![]() |
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | |
![]() |
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | |
![]() |
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | |
![]() |
Belirtilen nesnenin temel değerini döndürür. | Object | |
alpha | özellik |
alpha:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Gölge rengi için alfa saydamlık değeri. Geçerli değerler 0,0 ila 1,0'dır. ,25 değeri, %25'lik bir saydamlık değeri ayarlar. Varsayılan değer 1,0'dır.
Uygulama
public function get alpha():Number public function set alpha(value:Number):voidangle | özellik |
blRadius | özellik |
blRadius:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get blRadius():Number public function set blRadius(value:Number):voidblurX | özellik |
blurY | özellik |
brRadius | özellik |
brRadius:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get brRadius():Number public function set brRadius(value:Number):voidcolor | özellik |
distance | özellik |
tlRadius | özellik |
tlRadius:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get tlRadius():Number public function set tlRadius(value:Number):voidtrRadius | özellik |
trRadius:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get trRadius():Number public function set trRadius(value:Number):voidRectangularDropShadow | () | Yapıcı |
public function RectangularDropShadow()| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructor.
drawShadow | () | yöntem |
public function drawShadow(g:Graphics, x:Number, y:Number, width:Number, height:Number):void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Renders the shadow on the screen.
Parametreler
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.
|
Tue Jun 12 2018, 01:09 PM Z
Miras Alınan Genel Özellikleri Gizle
Miras Alınan Genel Özellikleri Göster