Hello everybody!
Is there any method to paint FastMountainRenderableSeries and FastBandRenderableSeries with texture (e.g. bmp image)?
Here is image below for example.
- Peter komissarov asked 9 years ago
- last edited 9 years ago
- You must login to post comments
Hi Peter,
As far as I know, there is. One of our customers (that we know about) has rendered a pattern fill using a VisualBrush inside FastMountainRenderableSeries.AreaBrush property.
I’m not sure exactly how they’ve done this, but I have seen the screenshots and it looks awfully similar to what you want. Are you working in the oil & gas industry by chance? Comment back here with your results and I’m happy to bounce ideas around until we can get a solution for you.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
-
Confirmed. Customer set FastMountainRenderableSeries.AreaBrush to a VisualBrush and it worked. Band series won't support brush fills however, but Column, Mountain types do
- You must login to post comments
I just tried it. With the following code you can generate a textured/hatched fill
<!-- Declare RenderableSeries -->
<s:SciChartSurface.RenderableSeries>
<s:FastMountainRenderableSeries x:Name="mountainRenderSeries"
SeriesColor="#AAFFC9A8"
StrokeThickness="2">
<s:FastMountainRenderableSeries.AreaBrush>
<VisualBrush TileMode="Tile" Viewport="0,0,10,10"
ViewportUnits="Absolute" Viewbox="0,0,10,10"
ViewboxUnits="Absolute">
<VisualBrush.Visual>
<Canvas>
<Rectangle Fill="Transparent" Width="10" Height="10" />
<Path Stroke="#AAFF8D42" Data="M 0 0 l 10 10" />
<Path Stroke="#AAFF8D42" Data="M 0 10 l 10 -10" />
</Canvas>
</VisualBrush.Visual>
</VisualBrush>
</s:FastMountainRenderableSeries.AreaBrush>
</s:FastMountainRenderableSeries>
</s:SciChartSurface.RenderableSeries>
See the attached image for the result.
- Andrew Burnett-Thompson answered 9 years ago
- You must login to post comments
Please login first to submit.