| Package | graphics.filters |
| Class | public class GrayScaleFilter |
| Inheritance | GrayScaleFilter ShaderCustomFilter flash.filters.ShaderFilter |
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | description : String [read-only]
The description of the filter (defines in the Shader). | ShaderCustomFilter | |
![]() | name : String [read-only]
The name of the filter (defines in the Shader). | ShaderCustomFilter | |
![]() | namespace : String [read-only]
The namespace of the filter (defines in the Shader). | ShaderCustomFilter | |
| scale : Number
The scale value of the filter between 0 and 1 (default 1). | GrayScaleFilter | ||
![]() | version : String [read-only]
The version of the filter (defines in the Shader). | ShaderCustomFilter | |
| Method | Defined By | ||
|---|---|---|---|
GrayScaleFilter(shader:Shader = null, init:Object = null)
Creates a new GrayScaleFilter instance. | GrayScaleFilter | ||
clone():BitmapFilter [override]
Returns a shallow copy of the object. | GrayScaleFilter | ||
| scale | property |
scale:NumberThe scale value of the filter between 0 and 1 (default 1).
public function get scale():Number public function set scale(value:Number):void| GrayScaleFilter | () | Constructor |
public function GrayScaleFilter(shader:Shader = null, init:Object = null)Creates a new GrayScaleFilter instance.
Parametersshader:Shader (default = null) — The Shader reference with the GrayScale pixel bender filter inside.
| |
init:Object (default = null) — The optional dynamic object to initialize the filter.
|
| clone | () | method |
override public function clone():BitmapFilterReturns a shallow copy of the object.
ReturnsBitmapFilter — a shallow copy of the object.
|