You could make something a bit like that in WPF just by blurring a rectangle.
result:Code:Dim r As New Rectangle With {.Width = 250, .Height = 250, .Fill = Brushes.Red} r.Effect = New Effects.BlurEffect With {.Radius = 25, .RenderingBias = Effects.RenderingBias.Quality} Dim vb As New VisualBrush With {.Stretch = Stretch.None, .Visual = r} 'use a Canvas or other control to display the resulting brush: Canvas1.Background = vb
Admittedly, this lacks the pointy corners of your post #3 image. If those features are wanted, you could piece the triangles together using a DrawingContext, which is the WPF equivalent of a System.Drawing.Graphics object, as you did in GDI+. I don't have time now to work out the actual drawing code required now, but this should give you a rough idea of how to create the brush:
BBCode:Dim dv As New DrawingVisual Dim dc As DrawingContext = dv.RenderOpen 'insert drawing instructions here dc.Close() Dim vb As New VisualBrush With {.Stretch = Stretch.None, .Visual = dv}




Reply With Quote
