Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好 请教对折线图截图的方法 #5

Open
kakashilw opened this issue Oct 7, 2019 · 3 comments
Open

你好 请教对折线图截图的方法 #5

kakashilw opened this issue Oct 7, 2019 · 3 comments

Comments

@kakashilw
Copy link

你好 首先很感谢提供了这么好用的库

在使用这个的时候遇到一个问题 就是想把生成的折线图分享出去 但是这个折线图是可以滚动显示的,一页显示不全,比较常规的对view截图的方法只能截取到一部分

public Bitmap screenShot(View view) {
    Bitmap bitmap = Bitmap.createBitmap(view.getWidth(),
            view.getHeight(), Config.ARGB_8888);
    Canvas canvas = new Canvas(bitmap);
    view.draw(canvas); 
    return bitmap;
}

不知道你这边有没有对LineChartView截图的比较好的思路和方法。

@zzz6519003
Copy link

系统应该提供跨屏截图方案

@zzz6519003
Copy link

自己建个地方渲染都不行么

@kakashilw
Copy link
Author

自己建个地方渲染都不行么

试过了,可以找到的是我回复的方法,不过只能截一屏,不知你是否有更好的解决方法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants