本文介绍了在bitmap上绘制三种图形,分别是:画线、写文本、画上原本存在 的图片
首先写好布局,代码如下
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="300dp"
android:layout_height="350dp"
android:layout_centerInParent="true">
<ImageView
android:id="@+id/id_iv_1"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayou