使用OpenGL绘制ui需要配合xcomponent进行绘制参考文档如下:Xcomponent:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-xcomponent-V5获取组件截图:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-image-V5\#imagecreatepixelmapfromsurface11其中对于Video或者相机流媒体展示类组件,不建议使用组件截图相关接口,建议从surface直接获取图片:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-image-V5\#imagecreatepixelmapfromsurface11关于相机的demo可参考:https://gitee.com/GuYueFei/harmonyOSNativeCamera
使用OpenGL绘制ui需要配合xcomponent进行绘制参考文档如下:Xcomponent:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-xcomponent-V5
获取组件截图:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-image-V5\#imagecreatepixelmapfromsurface11
其中对于Video或者相机流媒体展示类组件,不建议使用组件截图相关接口,建议从surface直接获取图片:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-image-V5\#imagecreatepixelmapfromsurface11关于相机的demo可参考:https://gitee.com/GuYueFei/harmonyOSNativeCamera