解决方案提供如下方案进行参考:1、参考官方API中的实现,官方API您可以参考图像变换,开发指南如下,切换到API参考可以查看API的使用:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/image-transformation-V52、参考三方库中的实现,图片裁剪可以参考ImageKnife中的实现,地址如下:https://gitee.com/openharmony-tpc/ImageKnife图片的旋转缩放平移等操作可以参考subsampling-scale-image-view中的实现,地址如下:https://gitee.com/openharmony-sig/subsampling-scale-image-view\_bak可以参考以下Demo中的图片编辑能力:https://gitee.com/openharmony/codelabs/tree/master/Media/ImageEdit
解决方案
提供如下方案进行参考:
1、参考官方API中的实现,官方API您可以参考图像变换,开发指南如下,切换到API参考可以查看API的使用:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/image-transformation-V5
2、参考三方库中的实现,图片裁剪可以参考ImageKnife中的实现,地址如下:https://gitee.com/openharmony-tpc/ImageKnife
图片的旋转缩放平移等操作可以参考subsampling-scale-image-view中的实现,地址如下:https://gitee.com/openharmony-sig/subsampling-scale-image-view\_bak
可以参考以下Demo中的图片编辑能力:https://gitee.com/openharmony/codelabs/tree/master/Media/ImageEdit