将PDF转换为图像的最快方法是什么?我尝试了几种方法,但它们很慢。我不需要高分辨率,但时间对我来说非常重要。
答案 0 :(得分:1)
您可以将视图作为图像抓取。
MyView.buildDrawingCache();
然后
Bitmap bmp = myView.getDrawingCache();
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/myview">
然后在你的活动中
MyLayout.setEnableDrawingCach(true);
然后构建绘图并将其作为上面的图像。