在我的应用程序中,我在单个活动中获得了三个自定义视图。所以现在我需要将它保存为单个 jpeg。如何实现这一点。我知道如何保存一个或两个位图,但这次是在单个活动中保存三个自定义视图。
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<com.wglxy.example.pinchzoompan.PanZoomView
android:id="@+id/zoomview1"
android:layout_width="100dp"
android:layout_height="700dp"
/>
<com.wglxy.example.pinchzoompan.PanZoomView1
android:id="@+id/zoomview2"
android:layout_width="100dp"
android:layout_height="700dp"
/>
<com.wglxy.example.pinchzoompan.PanZoomView2
android:id="@+id/zoomview3"
android:layout_width="100dp"
android:layout_height="700dp"
/>
</LinearLayout>
</FrameLayout>
每个视图都有一张图片,现在我需要将其保存为单个 jpeg。谁能给我一些想法。