pub unsafe extern "C" fn OH_ImageNative_GetByteBuffer(
image: *mut OH_ImageNative,
componentType: u32,
nativeBuffer: *mut *mut OH_NativeBuffer,
) -> Image_ErrorCodeExpand description
@brief Obtains the buffer corresponding to a component type in an {@link OH_ImageNative} object.
@param image Pointer to an {@link OH_ImageNative} object.
@param componentType Component type. The value is obtained using the {@link OH_ImageNative_GetComponentTypes} API.
@param nativeBuffer Double pointer to the buffer, which is an {@link OH_NativeBuffer} object.
@return {@linkImage_ErrorCode} IMAGE_SUCCESS - The operation is successful.
{@linkImage_ErrorCode} IMAGE_BAD_PARAMETER - A parameter is incorrect.
@since 12