SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.


I want to use code to intercept a picture, but find that the image is empty

    Bitmap src = surface.getDrawingCache();//save screenshot

how can I get the image of suface。

  • You must to post comments

Hi Huang,

By default SciChartSurface uses GlSurfaceView based RenderSurface implementation which allows to use OpenGL for drawing of chart. But there is one side effect – in this case chart isn’t draws as part of Android View hierarchy so you can’t use drawing cache.

To workaround this limiation we’ve added exportToBitmap() method for SciChartSurface which allows to render chart to a Bitmap:


Hope this will help you!

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.