🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>[info] 注意:以Android 5.0的源码来解析Canvas **[Canvas](https://www.androidos.net.cn/android/5.0.1_r1/xref/frameworks/base/graphics/java/android/graphics/Canvas.java)解析** ~~~ frameworks/ base/ graphics/ java/ android/ graphics/ Canvas.java ~~~ Canvas源码树的结构图如下所示 ![](https://box.kancloud.cn/6fbece26ab655789fe63c750da707d92_459x662.jpg) ![](https://box.kancloud.cn/895fb1ee813f6d54b53fef3cb845c21a_543x823.jpg) ![](https://box.kancloud.cn/bada3e9e0fb3352fa8490d2932468198_556x821.jpg) ![](https://box.kancloud.cn/31dde4104b4024582f4e69aef933a5bd_549x882.jpg) ![](https://box.kancloud.cn/91bf12dc2ea9d250ae9b30eed1d980af_587x763.jpg) #### **参考文章:** [源码学习—— Demo解析Canvas绘图](http://blog.csdn.net/u012764110/article/details/48803495) [Android中Canvas绘图基础详解(附源码下载)](http://blog.csdn.net/iispring/article/details/49770651)