1e41f4b71Sopenharmony_ci# ArkGraphics2D Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## c1.ArkGraphics2D.1 OH_NativeImage_GetTransformMatrix Deprecated 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic API 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciThis API does not fully implement the output of a matrix. Therefore, it needs to be deprecated and replaced with a new one. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis change is a non-compatible change. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciYou are advised to use **OH_NativeImage_GetTransformMatrixV2** instead of **OH_NativeImage_GetTransformMatrix**. 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci**Start API Level** 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci9 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci**Change Since** 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.31 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Deprecated APIs/Components** 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ciThe **OH_NativeImage_GetTransformMatrix** API is deprecated. Use **OH_NativeImage_GetTransformMatrixV2** instead. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Adaptation Guide** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciReplace **OH_NativeImage_GetTransformMatrix** with **OH_NativeImage_GetTransformMatrixV2**. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci## c1.ArkGraphics2D.2 OH_NativeWindow_CreateNativeWindow Deprecated 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci**Access Level** 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ciPublic API 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ci**Reason for Change** 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ciUsers cannot obtain the input parameter type and therefore cannot actually use this API. 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci**Change Impact** 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ciThis change is a non-compatible change. 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ciThere is no impact. Users cannot use the API. 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci**Start API Level** 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci8 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ci**Change Since** 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.31 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ci**Deprecated APIs/Components** 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ciThe **OH_NativeWindow_CreateNativeWindow** API is deprecated and no substitute is provided. 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci**Adaptation Guide** 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ciThere is no impact. Users cannot use the API. 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ci## c1.ArkGraphics2D.3 OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer Deprecated 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ci**Access Level** 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ciPublic API 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_ci**Reason for Change** 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ciUsers cannot obtain the input parameter type and therefore cannot actually use this API. 76e41f4b71Sopenharmony_ci 77e41f4b71Sopenharmony_ci**Change Impact** 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ciThis change is a non-compatible change. 80e41f4b71Sopenharmony_ci 81e41f4b71Sopenharmony_ciThere is no impact. Users cannot use the API. 82e41f4b71Sopenharmony_ci 83e41f4b71Sopenharmony_ci**Start API Level** 84e41f4b71Sopenharmony_ci 85e41f4b71Sopenharmony_ci8 86e41f4b71Sopenharmony_ci 87e41f4b71Sopenharmony_ci**Change Since** 88e41f4b71Sopenharmony_ci 89e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.31 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ci**Deprecated APIs/Components** 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ciThe **OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer** API is deprecated. You are advised to use **OH_NativeWindow_CreateNativeWindowBufferFromNativeBuffer** instead. 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci**Adaptation Guide** 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ciThere is no impact. Users cannot use the API. 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ci## c1.ArkGraphics2D.4 OH_NativeWindow_GetLastFlushedBuffer Deprecated 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ci**Access Level** 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ciPublic API 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ci**Reason for Change** 106e41f4b71Sopenharmony_ci 107e41f4b71Sopenharmony_ciThis API does not fully implement the output of a matrix. Therefore, it needs to be deprecated and replaced with a new one. 108e41f4b71Sopenharmony_ci 109e41f4b71Sopenharmony_ci**Change Impact** 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ciThis change is a non-compatible change. 112e41f4b71Sopenharmony_ci 113e41f4b71Sopenharmony_ciYou are advised to use **OH_NativeWindow_GetLastFlushedBufferV2** instead of **OH_NativeWindow_GetLastFlushedBuffer**. 114e41f4b71Sopenharmony_ci 115e41f4b71Sopenharmony_ci**Start API Level** 116e41f4b71Sopenharmony_ci 117e41f4b71Sopenharmony_ci11 118e41f4b71Sopenharmony_ci 119e41f4b71Sopenharmony_ci**Change Since** 120e41f4b71Sopenharmony_ci 121e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.31 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ci**Deprecated APIs/Components** 124e41f4b71Sopenharmony_ci 125e41f4b71Sopenharmony_ciThe **OH_NativeWindow_GetLastFlushedBuffer** API is deprecated. Use **OH_NativeWindow_GetLastFlushedBufferV2** instead. 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ci**Adaptation Guide** 128e41f4b71Sopenharmony_ci 129e41f4b71Sopenharmony_ciReplace **OH_NativeWindow_GetLastFlushedBuffer** with **OH_NativeWindow_GetLastFlushedBufferV2**. 130e41f4b71Sopenharmony_ci 131e41f4b71Sopenharmony_ci## cl.ArkGraphics2D.5 Error Code Is Added to OH_Drawing_RegisterFont() and OH_Drawing_RegisterFontBuffer() 132e41f4b71Sopenharmony_ci 133e41f4b71Sopenharmony_ci**Access Level** 134e41f4b71Sopenharmony_ci 135e41f4b71Sopenharmony_ciPublic API 136e41f4b71Sopenharmony_ci 137e41f4b71Sopenharmony_ci**Reason for Change** 138e41f4b71Sopenharmony_ci 139e41f4b71Sopenharmony_ciThe **OH_Drawing_RegisterFont()** and **OH_Drawing_RegisterFontBuffer()** APIs do not verify the file content. 140e41f4b71Sopenharmony_ci 141e41f4b71Sopenharmony_ci**Change Impact** 142e41f4b71Sopenharmony_ci 143e41f4b71Sopenharmony_ciThis change is a non-compatible change. 144e41f4b71Sopenharmony_ci1. Before change: The file content is not verified. If the file is damaged, the default font is used and a success message is returned. 145e41f4b71Sopenharmony_ci2. After change: The file content is verified. If the font fails to be created, error code 9 is reported, indicating that the file is damaged. 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ci**Start API Level** 148e41f4b71Sopenharmony_ci 149e41f4b71Sopenharmony_ci11 150e41f4b71Sopenharmony_ci 151e41f4b71Sopenharmony_ci**Change Since** 152e41f4b71Sopenharmony_ci 153e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.32 154e41f4b71Sopenharmony_ci 155e41f4b71Sopenharmony_ci**Key API/Component Changes** 156e41f4b71Sopenharmony_ci 157e41f4b71Sopenharmony_ciError code 9 indicating file damage is added to **OH_Drawing_RegisterFont()** and **OH_Drawing_RegisterFontBuffer()**. 158e41f4b71Sopenharmony_ci 159e41f4b71Sopenharmony_ci**Adaptation Guide** 160e41f4b71Sopenharmony_ci 161e41f4b71Sopenharmony_ciSearch for **OH_Drawing_RegisterFont** and **OH_Drawing_RegisterFontBuffer** globally to adapt to the new error code. 162