AngleGradient in WPF
问题 As you know, there is a gradient option in PhotoShop named AngleGradient . But, WPF has only LinearGradientBrush and RadialGradientBrush gradients. Have you any idea to how to create an AngleGradient by using XAML ? UPDATE: Samples -by photoshop: 回答1: I wrote a shader for this, compile it and add the .ps file as a resource to your project: // no input texture, the output is completely generated in code sampler2D inputSampler : register(S0); /// <summary>The center of the gradient. </summary>