flash.display
public final class InterpolationMethod
继承InterpolationMethod Inheritance Object

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

InterpolationMethod 类为 Graphics.beginGradientFill()Graphics.lineGradientStyle() 方法中的 interpolationMethod 参数提供值。 此参数确定呈现渐变时 Flash Player 使用的 RGB 空间。

另请参见

flash.display.Graphics.beginGradientFill()
flash.display.Graphics.lineGradientStyle()



公共 属性
 属性定义方
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 Inheritedprototype : Object
[static] 对类或函数对象的原型对象的引用。
Object
公共 方法
 方法定义方
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
公共 常量
 常量定义方
  LINEAR_RGB : String = "linearRGB"
[static] 指定应使用线性 RGB 插值方法。
InterpolationMethod
  RGB : String = "rgb"
[static] 指定应使用 RGB 插值方法。
InterpolationMethod
常量详细信息
LINEAR_RGB常量
public static const LINEAR_RGB:String = "linearRGB"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

指定应使用线性 RGB 插值方法。 这意味着 Flash Player 使用基于线性 RGB 颜色模型的 RGB 颜色空间。

另请参见

RGB
RGB常量 
public static const RGB:String = "rgb"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

指定应使用 RGB 插值方法。 这意味着呈现渐变时,Flash Player 将使用指数表示的 sRGB(标准 RGB)空间。 sRGB 空间是一种 W3C 批准的标准,用于定义红色、绿色和蓝色成分值和可见成分颜色实际浓度之间的非线性转换。

例如,假设有两种颜色之间的简单线性渐变(spreadMethod 参数设置为 SpreadMethod.REFLECT)。 不同的插值方法对外观的影响如下所示:

InterpolationMethod.LINEAR_RGBInterpolationMethod.RGB

另请参见





 

评论添加到页面后给我发送电子邮件 | 评论报告

当前页: http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/flash/display/InterpolationMethod.html