当前位置: 首页>>代码示例>>C#>>正文


C# Effects.PixelShader类代码示例

本文整理汇总了C#中System.Windows.Media.Effects.PixelShader的典型用法代码示例。如果您正苦于以下问题:C# PixelShader类的具体用法?C# PixelShader怎么用?C# PixelShader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PixelShader类属于System.Windows.Media.Effects命名空间,在下文中一共展示了PixelShader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FadeInEffect

        public FadeInEffect()
        {
            PixelShader = new PixelShader { UriSource = new Uri("FadeInEffect.ps", UriKind.Relative) };

            UpdateShaderValue(InputProperty);
            UpdateShaderValue(DeltaProperty);
        }
开发者ID:vhanla,项目名称:XWindows-Dock-2.0,代码行数:7,代码来源:Effects.cs

示例2: BlueRange

 public BlueRange()
 {
     PixelShader = new PixelShader();
     PixelShader.UriSource = new Uri("pack://application:,,,/Resources/BlueRange.ps");
     UpdateShaderValue(GreenProperty);
     UpdateShaderValue(RedProperty);
 }
开发者ID:Hobble,项目名称:HubrisEditor,代码行数:7,代码来源:BlueRange.cs

示例3: CustomEffect

		public CustomEffect ()
		{
			PixelShader ps = new PixelShader ();
			ps.UriSource = new Uri ("file:///data/tmp/local/invert.ps", UriKind.Absolute);

			this.PixelShader = ps;
		}
开发者ID:dfr0,项目名称:moon,代码行数:7,代码来源:Page.xaml.cs

示例4: DropFadeTransitionEffect

 /// <summary>
 /// Creates an instance of the shader.
 /// </summary>
 public DropFadeTransitionEffect()
 {
     PixelShader shader = new PixelShader();
     shader.UriSource = Global.MakePackUri("ShaderSource/DropFadeTransitionEffect.ps");
     PixelShader = shader;
     UpdateShaderValue(CloudImageProperty);
 }
开发者ID:jiliyutou,项目名称:Kinect.Joy,代码行数:10,代码来源:DropFadeTransitionEffect.cs

示例5: RandomCircleRevealTransitionEffect

 /// <summary>
 /// Creates an instance of the shader.
 /// </summary>
 public RandomCircleRevealTransitionEffect()
 {
     PixelShader shader = new PixelShader();
     shader.UriSource = Global.MakePackUri("ShaderSource/RandomCircleRevealTransitionEffect.ps");
     PixelShader = shader;
     UpdateShaderValue(CloudImageProperty);
 }
开发者ID:jiliyutou,项目名称:Kinect.Joy,代码行数:10,代码来源:RandomCircleRevealTransitionEffect.cs

示例6: loadShader

        protected void loadShader(String name)
        {
            PixelShader = new PixelShader();
       
            PixelShader.UriSource = new Uri("pack://application:,,,/MediaViewer;component/Resources/CompiledShaders/" + name);

        }
开发者ID:iejeecee,项目名称:mediaviewer,代码行数:7,代码来源:PixelShaderEffect.cs

示例7: ChangableEffect

        public ChangableEffect(PixelShader shader)
            : base(shader)
        {
            IsChanged = 0f;

            UpdateShaderValue(IsChangedProperty);
        }
开发者ID:CHiiLD,项目名称:net-toolkit,代码行数:7,代码来源:ChangableEffect.cs

示例8: CustomEffect

		public CustomEffect ()
		{
			PixelShader ps = new PixelShader ();
			ps.UriSource = new Uri ("CustomEffect.ps", UriKind.Relative);

			this.PixelShader = ps;
		}
开发者ID:dfr0,项目名称:moon,代码行数:7,代码来源:CustomEffect.cs

示例9: SmoothSwirlGridTransitionEffect

		/// <summary>
		/// Creates an instance and updates the shader's variables to the default values.
		/// </summary>
		public SmoothSwirlGridTransitionEffect()
		{
			UpdateShaderValue(TwistAmountProperty);

			var shader = new PixelShader();
			shader.UriSource = Helper.MakePackUri("Transitions/ShaderSource/SmoothSwirlGridTransitionEffect.ps");
			PixelShader = shader;
		}
开发者ID:CarverLab,项目名称:onCore.root,代码行数:11,代码来源:SmoothSwirlGridTransitionEffect.cs

示例10: HHEffect

		public HHEffect() {
			PixelShader pixelShader = new PixelShader();
			pixelShader.UriSource = new Uri("/bing;component/HH.ps", UriKind.Relative);
			this.PixelShader = pixelShader;

            this.UpdateShaderValue(ScalingProperty);
            this.UpdateShaderValue(ScaleProperty);
		}
开发者ID:tigerss,项目名称:Grow-Romania,代码行数:8,代码来源:HHEffect.cs

示例11: HeatColorizer

 public HeatColorizer()
 {
     PixelShader pixelShader = new PixelShader();
     pixelShader.UriSource = new Uri("/FM4CC;component/Util/Effects/HeatColorizer.ps", UriKind.Relative);
     this.PixelShader = pixelShader;
     this.UpdateShaderValue(InputProperty);
     this.UpdateShaderValue(PaletteProperty);
 }
开发者ID:sac16controllertester,项目名称:ControllerTester,代码行数:8,代码来源:HeatColorizer.cs

示例12: ColorMappingEffect

		public ColorMappingEffect() {
			PixelShader pixelShader = new PixelShader();
			pixelShader.UriSource = new Uri(@"/L3.Cargo.Workstation.Plugins.XRayImageBase;component/Effects/ColorMapping.ps", UriKind.Relative);
			this.PixelShader = pixelShader;

			this.UpdateShaderValue(InputProperty);
			this.UpdateShaderValue(MappingTextureSamplerProperty);
		}
开发者ID:BdGL3,项目名称:CXPortal,代码行数:8,代码来源:ColorMappingEffect.cs

示例13: AddativeBlendClear

 public AddativeBlendClear()
 {
     PixelShader pixelShader = new PixelShader();
     pixelShader.UriSource = new Uri("/FM4CC;component/Util/Effects/AddativeBlendClear.ps", UriKind.Relative);
     this.PixelShader = pixelShader;
     this.UpdateShaderValue(ClearColorProperty);
     this.UpdateShaderValue(InputProperty);
 }
开发者ID:sac16controllertester,项目名称:ControllerTester,代码行数:8,代码来源:AddativeBlendClear.cs

示例14: Shader

        public Shader(string uri)
        {
            shader = new PixelShader ();
            shader.UriSource = new Uri (Driver.MakePath (uri));
            PixelShader = shader;

            UpdateShaderValue (InputProperty);
        }
开发者ID:kangaroo,项目名称:PixelMagic,代码行数:8,代码来源:Shaders.cs

示例15: LineGrid

 public LineGrid()
 {
     PixelShader pixelShader = new PixelShader();
     pixelShader.UriSource = new Uri("pack://application:,,,/UIControls;component/Effects/LineGrid.ps", UriKind.Absolute);
     this.PixelShader = pixelShader;
     this.UpdateShaderValue(InputProperty);
     this.DdxUvDdyUvRegisterIndex = -1;
 }
开发者ID:roederf,项目名称:wpfReferenceApp,代码行数:8,代码来源:LineGrid.cs


注:本文中的System.Windows.Media.Effects.PixelShader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。