简体   繁体   English

将SciChartSurface背景设置为透明可使其变成黑色Xamarin.Android

[英]Setting SciChartSurface background to transparent makes it black Xamarin.Android

In Xamarin.Android if you set the background to transparent it just makes the background black. 在Xamarin.Android中,如果将背景设置为透明,则只会使背景变黑。 Code: 码:

this.sciChartSurface.SetBackgroundColor(Android.Graphics.Color.Transparent);
this.sciChartSurface.Background.Alpha = 0;
this.sciChartSurface.Background.SetAlpha(0);

The issue is that the default RenderSurface implementation in Scichart Android uses OpenGL, which does not allow transparency or compositing of views under the chart. 问题是Scichart Android中的默认RenderSurface实现使用OpenGL,该图表不允许图表下的视图透明或合成。

However, SciChart provides an alternative which allows you to do this. 但是,SciChart提供了一种替代方法,您可以执行此操作。

Have a look at https://www.scichart.com/questions/question/transparent-bacground and set the RenderSurface on the SciChartSurface to a GLTextureView instance and it should work 看看https://www.scichart.com/questions/question/transparent-bacground并将SciChartSurface上的RenderSurface设置为GLTextureView实例,它应该可以工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM