• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Effects.PixelShader类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: CircleRevealTransitionEffect

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

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


示例17: SlideInTransitionEffect

        /// <summary>
        /// Creates an instance and updates the shader's variables to the default values.
        /// </summary>
        public SlideInTransitionEffect()
        {
            PixelShader shader = new PixelShader();
            shader.UriSource = Global.MakePackUri("ShaderSource/SlideInTransitionEffect.ps");
            PixelShader = shader;

            UpdateShaderValue(SlideAmountProperty);
        }
开发者ID:jiliyutou,项目名称:Kinect.Joy,代码行数:11,代码来源:SlideInTransitionEffect.cs


示例18: InvertColorEffect

        public InvertColorEffect()
        {
            PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri("/Soft64.Toolkits.WPF;component/InvertColorEffect.ps", UriKind.Relative);
            this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
        }
开发者ID:RonnChyran,项目名称:Soft64-Bryan,代码行数:8,代码来源:InvertColorEffect.cs


示例19: SwirlGridTransitionEffect

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

            PixelShader shader = new PixelShader();
            shader.UriSource = Global.MakePackUri("ShaderSource/SwirlGridTransitionEffect.ps");
            PixelShader = shader;
        }
开发者ID:jiliyutou,项目名称:Kinect.Joy,代码行数:11,代码来源:SwirlGridTransitionEffect.cs


示例20: SaturationEffect

        public SaturationEffect()
        {
            PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri("pack://application:,,,/Resources/Shaders/Saturation.ps", UriKind.Absolute);
            this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
            this.UpdateShaderValue(RatioProperty);
        }
开发者ID:thecriderman,项目名称:TangramApp,代码行数:9,代码来源:SaturationEffect.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Imaging.BitmapFrame类代码示例发布时间:2022-05-26
下一篇:
C# Effects.DropShadowEffect类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap