用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
mx.graphics.shaderClasses 

LuminosityShader  - AS3 Flex

mx.graphics.shaderClasses
public class LuminosityShader
继承LuminosityShader Inheritance Shader Inheritance Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

创建一个混合着色器,此着色器等效于 Adobe Creative Suite 工具中提供的 RGB 预乘颜色的“发光度”混合模式。此混合模式不是 Flash 的特有功能,在 Adobe Illustrator 和 Adobe Photoshop 等工具中都提供。

可以对 Flex 组和图形元素设置“发光度”混合模式。诸如 Adobe Illustrator 和 Adobe Photoshop 等工具中的可视外观将通过此混合着色器进行模仿。

查看示例



公共属性
 属性由以下参数定义
 InheritedbyteCode : ByteArray
[只写] 此 Shader 实例的原始着色器字节代码。
Shader
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 Inheriteddata : ShaderData
提供对 Shader 实例的参数、输入图像和元数据的访问。
Shader
 InheritedprecisionHint : String
着色器所执行数学运算的精度。
Shader
公共方法
 方法由以下参数定义
  
构造函数。
LuminosityShader
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
构造函数详细信息

LuminosityShader

()构造函数
public function LuminosityShader()

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

构造函数。

LuminosityShaderExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- LuminosityShaderExample.mxml -->
<s:Application name="ColorBurnShader"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">

    <s:Panel title="Luminosity Example"
            width="75%" height="75%"
            horizontalCenter="0" verticalCenter="0">
        <s:Group blendMode="normal" horizontalCenter="0">
            <s:Rect width="200" height="220">
                <s:fill>
                     <s:SolidColor color="0x33CC99" />
                </s:fill>
            </s:Rect>
        </s:Group>
        <s:Group id="group2" horizontalCenter="0">
        <s:BitmapImage source="@Embed('/assets/ks5792.jpg')" x="20" y="10"/>
        </s:Group>
        <s:Button label="Apply Luminosity" click="group2.blendMode='luminosity'" 
            x="15" y="265" />
    </s:Panel>

</s:Application>




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。