diff --git a/multimedia/image_framework/include/image/pixelmap_native.h b/multimedia/image_framework/include/image/pixelmap_native.h index 87a9352cde4c724935fa1938fc407c4ff5b70786..231f35adef104b1c0e5873bfab3be12a5cc1b8ba 100644 --- a/multimedia/image_framework/include/image/pixelmap_native.h +++ b/multimedia/image_framework/include/image/pixelmap_native.h @@ -476,6 +476,19 @@ Image_ErrorCode OH_PixelmapNative_ConvertAlphaFormat(OH_PixelmapNative* srcpixel Image_ErrorCode OH_PixelmapNative_CreateEmptyPixelmap( OH_Pixelmap_InitializationOptions *options, OH_PixelmapNative **pixelmap); +/** + * @brief The interversion of the two formats + * + * @param srcPixelMap Source Image PixelMap. + * @param destPixelMap Destination Image PixelMap. + * @param destPixelFormat Destination Image PixelFormat. + * @return Returns {@link Image_ErrorCode} IMAGE_RESULT_SUCCESS - if the operation is successful. + * @since 12 + * @Syscap SystemCapability.Multimedia.Image + */ +Image_ErrorCode OH_PixelMapNative_ConvertPixelFormat(OH_PixelmapNative *srcPixelMap, OH_PixelmapNative **destPixelMap, + int32_t destPixelFormat); + #ifdef __cplusplus }; #endif diff --git a/multimedia/image_framework/libpixelmap.ndk.json b/multimedia/image_framework/libpixelmap.ndk.json index 05f677374f7eb1919a9769666bcdebdad59617a5..7b53bab00c6826207161c18f6c40869d5fdfe881 100644 --- a/multimedia/image_framework/libpixelmap.ndk.json +++ b/multimedia/image_framework/libpixelmap.ndk.json @@ -130,5 +130,9 @@ { "first_introduced": "12", "name": "OH_PixelmapNative_CreateEmptyPixelmap" + }, + { + "first_introduced": "12", + "name": "OH_PixelMapNative_ConvertPixelFormat" } ] \ No newline at end of file