| 包 | mx.graphics.shaderClasses |
| 类 | public class HueShader |
| 继承 | HueShader Shader Object |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 4 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
可以对 Flex 组和图形元素设置“色相”混合模式。诸如 Adobe Illustrator 和 Adobe Photoshop 等工具中的可视外观将通过此混合着色器进行模仿。
公共方法
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
构造函数。 | HueShader | ||
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object | |
构造函数详细信息
HueShader | () | 构造函数 |
public function HueShader()| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 4 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
构造函数。
示例 如何使用本示例
HueShaderExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- HueShaderExample.mxml -->
<s:Application name="HueShader"
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="HueShader 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 HueShader" click="group2.blendMode='hue'"
x="15" y="265" />
</s:Panel>
</s:Application>
Tue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性