[英]Get a screenshot of custom layout
How do I take a screenshot of a custom layout from opencv? 如何从opencv中获取自定义布局的屏幕截图? Is this code getWindow().getDecorView().getRootView() applicable with this custom view from opencv;
此代码getWindow()。getDecorView()。getRootView()是否适用于opencv中的此自定义视图; get the bitmap out of it?
从中取出位图?
<org.opencv.android.JavaCameraView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
android:id="@+id/activity_java_surface_view"
opencv:show_fps="true"
opencv:camera_id="any" />
Does this code work? 此代码有效吗?
view.setDrawingCacheEnabled(true);
Bitmap b = view.getDrawingCache();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.