[英]Setting SciChartSurface background to transparent makes it black Xamarin.Android
在Xamarin.Android中,如果將背景設置為透明,則只會使背景變黑。 碼:
this.sciChartSurface.SetBackgroundColor(Android.Graphics.Color.Transparent);
this.sciChartSurface.Background.Alpha = 0;
this.sciChartSurface.Background.SetAlpha(0);
問題是Scichart Android中的默認RenderSurface實現使用OpenGL,該圖表不允許圖表下的視圖透明或合成。
但是,SciChart提供了一種替代方法,您可以執行此操作。
看看https://www.scichart.com/questions/question/transparent-bacground並將SciChartSurface上的RenderSurface設置為GLTextureView實例,它應該可以工作
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.