本文整理汇总了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);
}
示例2: BlueRange
public BlueRange()
{
PixelShader = new PixelShader();
PixelShader.UriSource = new Uri("pack://application:,,,/Resources/BlueRange.ps");
UpdateShaderValue(GreenProperty);
UpdateShaderValue(RedProperty);
}
示例3: CustomEffect
public CustomEffect ()
{
PixelShader ps = new PixelShader ();
ps.UriSource = new Uri ("file:///data/tmp/local/invert.ps", UriKind.Absolute);
this.PixelShader = ps;
}
示例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);
}
示例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);
}
示例6: loadShader
protected void loadShader(String name)
{
PixelShader = new PixelShader();
PixelShader.UriSource = new Uri("pack://application:,,,/MediaViewer;component/Resources/CompiledShaders/" + name);
}
示例7: ChangableEffect
public ChangableEffect(PixelShader shader)
: base(shader)
{
IsChanged = 0f;
UpdateShaderValue(IsChangedProperty);
}
示例8: CustomEffect
public CustomEffect ()
{
PixelShader ps = new PixelShader ();
ps.UriSource = new Uri ("CustomEffect.ps", UriKind.Relative);
this.PixelShader = ps;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例14: Shader
public Shader(string uri)
{
shader = new PixelShader ();
shader.UriSource = new Uri (Driver.MakePath (uri));
PixelShader = shader;
UpdateShaderValue (InputProperty);
}
示例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;
}