I am converting my heatmap indicator - similar to your SwamiCharts (eg. SwamiStochastics).
In the NT7 version I could use one rectangle with PathGradientBrush unfortunately this is no longer available in WPF and SharpDX. So the solution I attempted is for each value to have 4 rectangles with the following set up:
4 3
2 1
where:
1. is using the SolidColorBrush with the MainColor of the value
2. is a LinearGradientBrush starting with MainColor and ending with PreviousColor (left)
3. is a LinearGradientBrush starting with MainColor and ending with AboveColor
4. is a RadialGradientBrush starting with MainColor and ending with PreviousAboveColor (left above)
If for all rectangles I use SolidColorBrush the performance is quite good - I can resize the chart and Indicator panel, zoom in and out with no problem.
When I switched to gradient brushes after eg. resize I have to wait few seconds before it draws anything and gives me the cursor back. I can combine rectangles 1 and 2 OR 1 and 3 but it still doesn't improve much since I am only removing SolidColorBrush from the equation.
Are the issues I am experiencing the kind of issues you are currently looking to resolve?
Also is there any other alternative to PathGradientBrush than the solution above?
Comment