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

            UpdateShaderValue(InputProperty);
            UpdateShaderValue(DeltaProperty);
        }
Beispiel #2
0
 public BlueRange()
 {
     PixelShader = new PixelShader();
     PixelShader.UriSource = new Uri("pack://application:,,,/Resources/BlueRange.ps");
     UpdateShaderValue(GreenProperty);
     UpdateShaderValue(RedProperty);
 }
Beispiel #3
0
		public CustomEffect ()
		{
			PixelShader ps = new PixelShader ();
			ps.UriSource = new Uri ("file:///data/tmp/local/invert.ps", UriKind.Absolute);

			this.PixelShader = ps;
		}
 /// <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);
 }
 /// <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);
 }
        protected void loadShader(String name)
        {
            PixelShader = new PixelShader();
       
            PixelShader.UriSource = new Uri("pack://application:,,,/MediaViewer;component/Resources/CompiledShaders/" + name);

        }
Beispiel #7
0
        public ChangableEffect(PixelShader shader)
            : base(shader)
        {
            IsChanged = 0f;

            UpdateShaderValue(IsChangedProperty);
        }
Beispiel #8
0
		public CustomEffect ()
		{
			PixelShader ps = new PixelShader ();
			ps.UriSource = new Uri ("CustomEffect.ps", UriKind.Relative);

			this.PixelShader = ps;
		}
		/// <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;
		}
Beispiel #10
0
		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);
		}
 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);
 }
Beispiel #12
0
		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);
		}
 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);
 }
Beispiel #14
0
        public Shader(string uri)
        {
            shader = new PixelShader ();
            shader.UriSource = new Uri (Driver.MakePath (uri));
            PixelShader = shader;

            UpdateShaderValue (InputProperty);
        }
Beispiel #15
0
 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;
 }
		/// <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;
		}
        /// <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);
        }
        public InvertColorEffect()
        {
            PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri("/Soft64.Toolkits.WPF;component/InvertColorEffect.ps", UriKind.Relative);
            this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
        }
Beispiel #19
0
        public InvertColorEffect()
        {
            PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri("/Pichur;component/Shaders/InvertColor.ps", UriKind.Relative);
            this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
        }
        /// <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;
        }
        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);
        }
Beispiel #22
0
 public Ripple()
 {
     PixelShader = new PixelShader() { UriSource = GetShaderUri("Ripple.ps") };
     this.UpdateShaderValue(InputProperty);
     this.UpdateShaderValue(CenterProperty);
     this.UpdateShaderValue(AmplitudeProperty);
     this.UpdateShaderValue(FrequencyProperty);
     this.UpdateShaderValue(PhaseProperty);
 }
Beispiel #23
0
        public FadeToMonochrome()
        {
            PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri("/So.Wpf;component/Effects/FadeToMonochrome.ps", UriKind.Relative);
            this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
            this.UpdateShaderValue(StrengthProperty);
        }
 /// <summary>
 /// Creates an instance and updates the shader's variables to the default values.
 /// </summary>
 public ZoomBlurEffect()
 {
     var pixelShader = new PixelShader();
     pixelShader.UriSource = Global.MakePackUri("ShaderSource/ZoomBlur.ps");
     this.PixelShader = pixelShader;
     UpdateShaderValue(InputProperty);
     UpdateShaderValue(CenterProperty);
     UpdateShaderValue(BlurAmountProperty);
 }
Beispiel #25
0
 public HeatColorizer()
 {
     PixelShader pixelShader = new PixelShader();
     pixelShader.UriSource = new Uri("/B3;component/Effects/HeatColorizer.ps", UriKind.Relative);
     this.PixelShader = pixelShader;
     this.UpdateShaderValue(InputProperty);
     this.UpdateShaderValue(PaletteProperty);
     this.DdxUvDdyUvRegisterIndex = -1;
 }
Beispiel #26
0
		public SharpenEffect() {
			PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri(@"/L3Filter-Sharpen;component/sharpenA.ps", UriKind.Relative);
			this.PixelShader = pixelShader;

			this.UpdateShaderValue(InputProperty);
			this.UpdateShaderValue(AmountProperty);
			this.UpdateShaderValue(InputSizeProperty);
		}
Beispiel #27
0
        public DensityAlarmEffect()
        {
			PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri(@"/L3Filter-DensityAlarm;component/DensityAlarm.ps", UriKind.Relative);
			this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
            this.UpdateShaderValue(SampleIProperty);
		}
Beispiel #28
0
        protected internal SkyEffect(PixelShader pixShader)
            : base(pixShader)
        {
            Alpha = 1f;
            Invert = 0f;

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

            PixelShader shader = new PixelShader();
            shader.UriSource = Global.MakePackUri("ShaderSource/BandedSwirlTransitionEffect.ps");
            PixelShader = shader;
        }
        public GrayscaleEffect()
        {
            PixelShader pixelShader = new PixelShader();
            pixelShader.UriSource = new Uri("/TraceLab.UI.WPF;component/Resources/grayscale.ps", UriKind.Relative);
            this.PixelShader = pixelShader;

            this.UpdateShaderValue(InputProperty);
            this.UpdateShaderValue(FactorProperty);
        }