diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-image.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-image.md index 548ccc7d50398bfd2b7414a78d5ab7cd308643f8..1e396cc2160c44a2a51c3ec2821062cebc63a167 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-image.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/changelogs-image.md @@ -111,7 +111,31 @@ **变更影响** -对于已发布的JS接口,可能影响应用的兼容性。 +对于已发布的Ndk接口,可能影响应用的兼容性。 +废弃接口替换方案如下: +OHOS::Media::OH_GetImageInfo 替换为 OH_PixelMap_GetImageInfo +OHOS::Media::OH_AccessPixels 替换为 OH_PixelMap_AccessPixels +OHOS::Media::OH_UnAccessPixels 替换为 OH_PixelMap_UnAccessPixels + +涉及变更的接口范围如下: +OH_PixelMap_CreatePixelMap (napi_env env, OhosPixelMapCreateOps info, void *buf, size_t len, napi_value *res) +OH_PixelMap_CreateAlphaPixelMap (napi_env env, napi_value source, napi_value *alpha) +OH_PixelMap_InitNativePixelMap (napi_env env, napi_value source) +OH_PixelMap_GetBytesNumberPerRow (const NativePixelMap *native, int32_t *num) +OH_PixelMap_GetIsEditable (const NativePixelMap *native, int32_t *editable) +OH_PixelMap_IsSupportAlpha (const NativePixelMap *native, int32_t *alpha) +OH_PixelMap_SetAlphaAble (const NativePixelMap *native, int32_t alpha) +OH_PixelMap_GetDensity (const NativePixelMap *native, int32_t *density) +OH_PixelMap_SetDensity (const NativePixelMap *native, int32_t density) +OH_PixelMap_SetOpacity (const NativePixelMap *native, float opacity) +OH_PixelMap_Scale (const NativePixelMap *native, float x, float y) +OH_PixelMap_Translate (const NativePixelMap *native, float x, float y) +OH_PixelMap_Rotate (const NativePixelMap *native, float angle) +OH_PixelMap_Flip (const NativePixelMap *native, int32_t x, int32_t y) +OH_PixelMap_Crop (const NativePixelMap *native, int32_t x, int32_t y, int32_t width, int32_t height) +OH_PixelMap_GetImageInfo (const NativePixelMap *native, OhosPixelMapInfos *info) +OH_PixelMap_AccessPixels (const NativePixelMap *native, void **addr) +OH_PixelMap_UnAccessPixels (const NativePixelMap *native) **适配指导**