Drawing sine waves effeciently in android

半世苍凉 提交于 2019-11-30 16:08:16

问题


I am making an app where I need to draw a sine wave between two given points. I have Google'd, and Google'd, and I haven't found anything that I have found suitable. So my question is, is there an efficient way in android to use some pre defined points to draw a smooth wave like form? thank you for any help in advance


回答1:


You can use the android.graphics.Path class to construct a set of quadratic or cubic Bézier spline curves between your set of control points.



来源:https://stackoverflow.com/questions/6501183/drawing-sine-waves-effeciently-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!