HarmonyOS 中针对 AndroidOS 中 imageview.getImageMatrix( ) 的替代方法是什么
What is the alternative method in HarmonyOS for imageview.getImageMatrix( ) in AndroidOS
在 Android 中,我们将在 imageView 上使用 getImageMatrix( ) 方法,其中 returns 视图的可选矩阵.这在绘制时应用于视图的可绘制对象。如果没有矩阵,这个方法会return一个单位矩阵。
在 Android:
Matrix matrix = imageView.getImageMatrix( ).
HarmonyOS 中此代码段的替代方案是什么?
正如@AIMIN 指出的那样,Harmony 目前没有 ImageView.getImageMatrix().
的确切替代方案
但是我们将能够为 Image 组件计算 getImageMatrix()。请参阅此 PhotoView 实施
在 Android 中,我们将在 imageView 上使用 getImageMatrix( ) 方法,其中 returns 视图的可选矩阵.这在绘制时应用于视图的可绘制对象。如果没有矩阵,这个方法会return一个单位矩阵。
在 Android:
Matrix matrix = imageView.getImageMatrix( ).
HarmonyOS 中此代码段的替代方案是什么?
正如@AIMIN 指出的那样,Harmony 目前没有 ImageView.getImageMatrix().
的确切替代方案但是我们将能够为 Image 组件计算 getImageMatrix()。请参阅此 PhotoView 实施