| 包 | flash.display | 
| 类 | public final class GraphicsShaderFill | 
| 继承 | GraphicsShaderFill  Object | 
| 实现 | IGraphicsFill, IGraphicsData | 
| 语言版本: | ActionScript 3.0 | 
| 运行时版本: | Flash Player 10, AIR 1.5 | 
          将 GraphicsShaderFill 对象与 Graphics.drawGraphicsData() 方法一起使用。绘制 GraphicsShaderFill 对象与调用 Graphics.beginShaderFill() 方法是等效的。
        
另请参见
| 属性 | 定义方 | ||
|---|---|---|---|
|  | constructor : Object 
  对类对象或给定对象实例的构造函数的引用。 | Object | |
| matrix : Matrix 一个 matrix 对象(属于 flash.geom.Matrix 类),可用于对着色器定义转换。 | GraphicsShaderFill | ||
|  | prototype : Object [静态] 
  对类或函数对象的原型对象的引用。 | Object | |
| shader : Shader 要用于填充的着色器。 | GraphicsShaderFill | ||
| 方法 | 定义方 | ||
|---|---|---|---|
| 创建新的 GraphicsShaderFill 对象。 | GraphicsShaderFill | ||
|  | 
  指示对象是否已经定义了指定的属性。 | Object | |
|  | 
  指示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
|  | 
  指示指定的属性是否存在、是否可枚举。 | Object | |
|  | 
     设置循环操作动态属性的可用性。 | Object | |
|  | 
  返回指定对象的字符串表示形式。 | Object | |
|  | 
  返回指定对象的原始值。 | Object | |
| matrix | 属性 | 
public var matrix:Matrix| 运行时版本: | Flash Player 10, AIR 1.5 | 
一个 matrix 对象(属于 flash.geom.Matrix 类),可用于对着色器定义转换。例如,可以使用以下矩阵将着色器旋转 45 度(pi/4 弧度):
matrix = new flash.geom.Matrix(); 
     matrix.rotate(Math.PI / 4);
            着色器中收到的坐标基于为 matrix 参数指定的矩阵。对于默认 (null) 矩阵,着色器中的坐标是可用于对输入采样的局部像素坐标。
          
另请参见
| shader | 属性 | 
public var shader:Shader| 运行时版本: | Flash Player 10, AIR 1.5 | 
          要用于填充的着色器。此 Shader 实例无需指定图像输入。但是,如果在着色器中指定了图像输入,则必须手动提供输入,方法是设置 Shader.data 属性的对应 ShaderInput 属性的 input 属性。
          
传递 Shader 实例作为参数时,将在内部复制着色器,并且绘制填充操作将使用该内部副本(而不是对原始着色器的引用)。对着色器进行的任何更改(比如更改参数值、输入或字节代码)不会应用于所复制的用于填充的着色器。
另请参见
| GraphicsShaderFill | () | 构造函数 | 
public function GraphicsShaderFill(shader:Shader = null, matrix:Matrix = null)| 运行时版本: | Flash Player 10, AIR 1.5 | 
创建新的 GraphicsShaderFill 对象。
参数| shader:Shader(default =null)— 
              要用于填充的着色器。此 Shader 实例无需指定图像输入。但是,如果在着色器中指定了图像输入,则必须手动提供输入,方法是设置Shader.data属性的对应 ShaderInput 属性的input属性。 | |
| matrix:Matrix(default =null)— 一个 matrix 对象(属于 flash.geom.Matrix 类),可用于对着色器定义转换。 | 
另请参见