未验证 提交 cd584228 编写于 作者: 冯泽悟 提交者: Gitee

update changelog in image.

Signed-off-by: N冯泽悟 <fengzewu@huawei.com>
上级 06d2605c
......@@ -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)
**适配指导**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册