pub unsafe extern "C" fn OH_ImageSourceNative_GetImageInfo(
source: *mut OH_ImageSourceNative,
index: i32,
info: *mut OH_ImageSource_Info,
) -> Image_ErrorCodeExpand description
@brief Obtains the information about an image with a given index.
@param source Pointer to an OH_ImageSourceNative object.
@param index Index of an image. For a GIF image, the value range is [0, N-1], where N indicates the number of GIF
frames. For an image with only one frame, you can pass in 0.
@param info Pointer to the image information obtained, which is an OH_ImageSource_Info struct.
For details, see {@link OH_ImageSource_Info}.
@return {@link IMAGE_SUCCESS} if the execution is successful.
{@link IMAGE_BAD_PARAMETER} source is nullptr, or info is nullptr, or failed to get image info.
@since 12